[issue17254] add thai encoding aliases to encodings.aliases

2013-02-20 Thread albertjan
New submission from albertjan: This is almost identical to: http://bugs.python.org/issue854511 However, tis602, which is mentioned in the orginal bug report, is not an alias to cp874. Therefore, I propose the following: import encodings aliases = encodings.aliases.aliases more_aliases

[issue17254] add thai encoding aliases to encodings.aliases

2013-02-20 Thread albertjan
albertjan added the comment: Hi,   I found this report that includes your name: http://mail.python.org/pipermail/python-bugs-list/2004-August/024564.html   Other relevant websites: http://en.wikipedia.org/wiki/ISO/IEC_8859-11  # is wikipedia 'proof'? http://code.ohloh.net/file?fid

[issue17254] add thai encoding aliases to encodings.aliases

2013-02-20 Thread albertjan
albertjan added the comment: Sent: Wednesday, February 20, 2013 4:25 PM Subject: [issue17254] add thai encoding aliases to encodings.aliases Thanks. Something is wrong with your request, though: * we already have an iso8859_11 code, so aliasing it to some   other name is not possible

[issue20999] setlocale, getlocale succession -- ValueError or (None, None)

2014-03-20 Thread albertjan
New submission from albertjan: - see also issue #18378 # Result applies to Python 2.7.2 and Python 3.3.4 # Mac OS X Mountain Lion 10.9.1 on Virtualbox with a Linux Debian AMD-64 host fomcls-Mac-Pro:~ fomcl$ uname -a Darwin fomcls-Mac-Pro.local 12.2.0 Darwin Kernel Version 12.2.0

[issue20999] setlocale, getlocale succession -- ValueError or (None, None)

2014-03-22 Thread albertjan
albertjan added the comment: Ok, I know this is closed as a duplicate, but I am pasting some additional info here for reference. All info is about the FIRST system of the original message ## The locale settings fomcls-Mac-Pro:Desktop fomcl$ locale LANG= LC_COLLATE=C LC_CTYPE=UTF-8 LC_MESSAGES

[issue23425] Windows getlocale unix-like with french, german, portuguese, spanish

2015-02-17 Thread albertjan
albertjan added the comment: Hi, Thanks for your replies. Eryksun (nice to meet you here too!), your function seems very useful, thank you very much. I had indeed already switched to your 'getrawlocale' approach. Perhaps off-topic (because I have never seen this happen in Windows

[issue23425] Windows getlocale unix-like with french, german, portuguese, spanish

2015-02-09 Thread albertjan
New submission from albertjan: getlocale() is supposed to (?) return a locale two-tuple in a platform-specific notation. However, in *Windows* 7 64, with Python 3.4, 3.3 and 2.7 a *unix-like*, abbreviated, lang_territory notation is used for french, german, portuguese, spanish. In other words

[issue23425] Windows getlocale unix-like with french, german, portuguese, spanish

2015-02-13 Thread albertjan
albertjan added the comment: I agree that the two issues are related, but I don't see how they could be duplicates. But maybe that's because I do not know the underlying code. issue 10466 is mostly about getdefaultlocale() and whether it's desirable or not that its return value is always uniq