mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
Work around funny python 2.6 default unicode unawareness to allow for
unicode characters e.g. in submit request comments.
This commit is contained in:
parent
99479b7ff9
commit
4172f12fb0
@ -3,7 +3,14 @@
|
||||
# this wrapper exists so it can be put into /usr/bin, but still allows the
|
||||
# python module to be called within the source directory during development
|
||||
|
||||
import sys
|
||||
|
||||
import sys, locale
|
||||
# this is a hack to make osc work as expected with utf-8 characters, no matter
|
||||
# how site.py is set...
|
||||
reload(sys)
|
||||
sys.setdefaultencoding(locale.getdefaultlocale()[1])
|
||||
del sys.setdefaultencoding
|
||||
|
||||
from osc import commandline
|
||||
from osc import babysitter
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user