Re: Locale breakage on alpha
Guido van Rossum <[email protected]> Mon, 17 Mar 2003 07:28:07 -0500
| Newsgroups | gmane.comp.python.snake-farm.user |
|---|---|
| Message-ID | <[email protected]> |
FYI. --Guido van Rossum (home page: http://www.python.org/~guido/) ------- Forwarded Message Date: Mon, 17 Mar 2003 10:16:07 +0100 From: "M.-A. Lemburg" <[email protected]> To: Guido van Rossum <[email protected]> cc: Martin von Loewis <[email protected]> Subject: Re: Quest: Re: [snake-farm] Locale breakage on alpha Guido van Rossum wrote: > Martin & Marc-Andre, > > Are you following the snake-farm list? This problem seems in your > area... I'm not actively following the list, no. Martin wrote most of the Unicode filename support. > The exception is raised within this try block: > > try: > TESTFN_ENCODED = TESTFN_UNICODE.encode(TESTFN_ENCODING) > except (ImportError, TypeError): > # Either the file system encoding is None, or the file name > # cannot be encoded in the file system encoding. > raise TestSkipped("No Unicode filesystem semantics on this platform.") > > Maybe the UnicodeEncodeError should be caught here instead (in > addition)? The above just seems to check whether TESTFN_UNICODE is representable using the _ENCODING. If that's the case, then you should tweak the except to match UnicodeError (encoding found but illegal chars in FN) and LookupError (encoding could not be found). - -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 17 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 15 days left EuroPython 2003, Charleroi, Belgium: 99 days left ------- End of Forwarded Message