﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
328	Python does not recognize OS/2 Chinese codepage (1386)	Alex Taylor		"YUM unfortunately fails when run on OS/2 Simplified Chinese version using the standard codepage (1386).
{{{
Traceback (most recent call last):
  File ""/@unixroot/usr/lib/python2.7/site.py"", line 550, in <module>
    main()
  File ""/@unixroot/usr/lib/python2.7/site.py"", line 540, in main
    setencoding()
  File ""/@unixroot/usr/lib/python2.7/site.py"", line 494, in setencoding
    sys.setdefaultencoding(encoding) # Needs Python Unicode build !
LookupError: unknown encoding: CP1386
}}}

I wonder if this is because (being ported software) it expects the GBK encoding to be codepage 936 instead?  (936 is the GBK codepage under Windows.  OS/2 uses codepage number 1386 instead.)

Perhaps an alias or mapping needs to be added somewhere?


(In spite of the superficial similarity to ticket #88, I suspect this is not actually the same error condition.  However, similarly to #88, yum can be forced to run by changing the process codepage to 850 ''and'' setting LANG=en_US.)"	defect	closed	major		yum		low	fixed		
