Message10718
| Author |
loewis |
| Recipients |
| Date |
2002年07月08日.08:55:59 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=21627
I see. For that, you should not use getdefaultlocale. The
reason is that getdefaultlocale cannot possibly determine
the locale's encoding correctly. Instead, you should use
locale.nl_langinfo where available (invoking setlocale
beforehand).
The fix you are reporting as 'easy' is a hack rather than a
solution: there is no guarantee whatsoever that the encoding
in a @euro locale will be Latin-9; it could just as well be,
say, UTF-8. Likewise, there might be other locales with
implied encodings. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:01:14 | admin | link | issue554676 messages |
| 2007年08月23日 14:01:14 | admin | create |
|