[issue1503789] Cannot write source code in UTF16

2010-03-22 Thread STINNER Victor
STINNER Victor added the comment: This feature was requested only once, 4 years ago, so I don't think that the feature is a "must-have" :-) I think that a lot of code have to be modified in Python parser to support UTF-16-* and UTF-32-* codecs. Since there is no working patch, I consider that

[issue1503789] Cannot write source code in UTF16

2009-03-31 Thread Georg Brandl
Georg Brandl added the comment: Why am I assigned this issue? -- assignee: georg.brandl -> ___ Python tracker ___ ___ Python-bugs-

[issue1503789] Cannot write source code in UTF16

2009-03-24 Thread STINNER Victor
STINNER Victor added the comment: Attached patch is a partial fix: support UTF-16-LE, UTF-16-BE and UTF-32-LE. Some remarks about my patch: * UTF-32-BE is not supported because I'm too lazy tonigh to finish the patch and because such file begins with 0x00 0x00 whereas the parser doesn't

[issue1503789] Cannot write source code in UTF16

2009-03-21 Thread STINNER Victor
STINNER Victor added the comment: Detect UTF-16 and UTF-32 is complex. I think that we can first support UTF-16LE, UTF-16BE, UTF-32LE and UTF-32BE with BOM. Most editors add a BOM (eg. notepad.exe on Windows). I will try to fix this issue. -- ___ P

[issue1503789] Cannot write source code in UTF16

2009-03-20 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> georg.brandl components: +Unicode nosy: +georg.brandl, haypo stage: -> test needed versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker

[issue1503789] Cannot write source code in UTF16

2008-01-19 Thread Christian Heimes
Christian Heimes added the comment: I turned it into a feature request for 2.6 with low priority. Somebody should either fix/implement the UTF-16 support or update the docs. -- components: +Documentation nosy: +tiran priority: normal -> low type: -> rfe versions: +Python 2.6 -Python 2.4