When the submitter has non ascii characters in the name,
repa accept fails to create SR with the following error:
$ repa accept submit/tizen_common/
20140610.120852
submission submit/tizen_common/
20140610.120852
Traceback (most recent call last):
File "/usr/bin/repa", line 9, in <module>
load_entry_point('repa==0.2', 'console_scripts', 'repa')()
File "repa/main.py", line 130, in main
return args.func(args)
File "repa/accept.py", line 57, in run
argv.project, argv.comment)
File "repa/common.py", line 104, in accept_or_reject
str(meta['obs_target_prj']), message=message)
File "repa/obs.py", line 174, in create_sr
cgi.escape(str(message))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9'
in position 13: ordinal not in range(128)
In the above example, my name is "St\xe9phane Desneux" and
\xe9 is 'e' with acute in iso-8859-15 .
Fixes: #1979
Fixes: #TINF-618
Change-Id: Ied208005d2cb1e4ad0bd785418aa3bfe77d70bc0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>