On Thu, Feb 14, 2008 at 2:59 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Maybe a decent rule of thumb would be: > > > > - if LANG is set, use the encoding it specifies; if there's no > > encoding in it, assume it's ASCII. > > > > - if LANG is *not* set, default to UTF-8 instead of to US-ASCII; UTF-8 > > is much more likely to be correct and useful for 10.4 and before. > > You mean, on OSX? Sounds fine to me.
Right. > Some people will see moji-bake with this surely; they'll have to set > LANG themselves. > > (IOW, ASCII is more likely to be correct, but UTF-8 is more likely > to be useful). Right. You can't completely rule out moji-bake -- people can set LANG to an incorrect value too. Can anyone supply a patch to open() in io.py? -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com