[Python-Dev] Re: [Python-checkins] python/dist/src/Lib textwrap.py,1.18,1.19
Martin v. Löwis
martin@v.loewis.de
11 Dec 2002 15:23:10 +0100
"Fredrik Lundh" <fredrik@pythonware.com> writes:
> > Weird. What the heck is 0xa0 doing in string.whitespace? Oh, waitasec,
> > 0xa0 is non-breaking-space in ISO-8859-1. But no, string.whitespace is
> > hardcoded to the US-ASCII whitespace chars, all of which are in
> > range(128) -- your locale shouldn't matter.
[...]
> /* Create 'whitespace' object */
> n = 0;
> for (c = 0; c < 256; c++) {
> if (isspace(c))
> buf[n++] = c;
> }
Sure. But shouldn't Python/the-C-library startup in the "C" locale?
Is this another one of these Mac quirks?
Regards,
Martin