Set default char-set encoding to utf-8 for submit job 97/130297/1
authorhyokeun <hyokeun.jeon@samsung.com>
Mon, 22 May 2017 00:40:56 +0000 (09:40 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Mon, 22 May 2017 00:40:56 +0000 (09:40 +0900)
Change-Id: I5abb5eaf91f4c4995538cf74225b349473f2d3c2

job_submit.py

index c6f9660..bd6bbb3 100755 (executable)
@@ -51,6 +51,10 @@ from gbp.rpm import SpecFile
 from gbp.git.repository import GitRepositoryError
 from gbp.errors import GbpError
 
+# set default char-set endcoding to utf-8
+reload(sys)
+sys.setdefaultencoding('utf-8') # pylint: disable-msg=E1101
+
 WRONG_DATE_MSG = '- The date %s in tag does NOT follow correct format.\n You can'\
                  ' use shell command "date --utc +%%Y%%m%%d.%%H%%M%%S" to '\
                  'generate it, like 20120801.083113.'