Locale breakage on alpha

Quest <[email protected]> Sun, 16 Mar 2003 15:12:32 +0100
Newsgroups gmane.comp.python.snake-farm.user
Organization Pantheon
Message-ID <[email protected]>
Not quite sure about this yet, but the test_unicode_file seems to
break because you don't have a locale set (for a change):

  [ 15:02 ] - locale
  LANG=POSIX
  LC_CTYPE="sv_SE"
  LC_NUMERIC="sv_SE"
  LC_TIME="sv_SE"
  LC_COLLATE="sv_SE"
  LC_MONETARY="sv_SE"
  LC_MESSAGES="sv_SE"
  LC_ALL=sv_SE

  [ 15:02 ] - ./python ../python/dist/src/Lib/test/regrtest.py
  test_unicode_file
  test_unicode_file
  1 test OK.

  [ 15:09 ] - LC_ALL=C ./python ../python/dist/src/Lib/test/regrtest.py
    -v test_unicode_file
  test_unicode_file
  test test_unicode_file crashed -- exceptions.UnicodeEncodeError:
    'ascii' codec can't encode characters in position 6-7: ordinal not
    in range(128)
  Traceback (most recent call last):
    File "../python/dist/src/Lib/test/regrtest.py", line 390, in runtest
      the_package = __import__(abstest, globals(), locals(), [])
    File "/mp/slaskdisk/tmp/quest/python/dist/src/Lib/test/test_unicode_file.py",
    line 9, in ?
      TESTFN_ENCODED = TESTFN_UNICODE.encode(TESTFN_ENCODING)
  UnicodeEncodeError: 'ascii' codec can't encode characters in position
    6-7: ordinal not in range(128)
  1 test failed:
      test_unicode_file

-- 
Anders "Quest" Qvist
http://www.lysator.liu.se/~sfarmer