[Python-3000] Removing windows 95 specific code

"Martin v. Löwis" martin at v.loewis.de
Mon Nov 19 22:17:44 CET 2007


> This may well be wrong, since we're supposed to accept Unicode
> everywhere. I don't know why that variable was introduced.

To control running test_pep277. The variable should only be set to true,
if the following strings are all valid file names:

filenames = [
    'abc',
    'ascii',
    'Gr\xfc\xdf-Gott',
    '\u0393\u03b5\u03b9\u03ac-\u03c3\u03b1\u03c2',

u'\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435',
    '\u306b\u307d\u3093',
    '\u05d4\u05e9\u05e7\u05e6\u05e5\u05e1',
    '\u66e8\u66e9\u66eb',
    '\u66e8\u05e9\u3093\u0434\u0393\xdf',
    ]

(or, in a non-escaped form:)

filenames = [
  'abc',
  'ascii',
  'Grüß-Gott',
  'Γειά-σας',
  'Здравствуйте',
  'にぽん',
  'השקצץס',
  '曨曩曫',
  '曨שんдΓß',
]

On a typical Unix system, several of these aren't valid file names
(unless you happen to use a UTF-8 locale, in which case they are all
valid file names).

Regards,
Martin


More information about the Python-3000 mailing list