This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zegreek
Recipients eric.araujo, nils, tarek, vstinner, zegreek
Date 2010-10-29.12:52:26
SpamBayes Score 5.336287e-13
Marked as misclassified No
Message-id <4CCAC36E.1040904@free.fr>
In-reply-to <4CCABB59.9090506@free.fr>
Content
A little bit more information:

the error message comes from Python/pythonrun.c, line 736, in function 
initfsencoding.

This part of the code is protected with a preprocessor #if:

#if defined(HAVE_LANGINFO_H) && defined(CODESET)

so I tried replacing that with #if 0. However, the function then fails 
on line 750. The comment on line 749 states:

/* Such error can only occurs in critical situations: no more
 * memory, import a module of the standard library failed,
 * etc. */

It looks like it is not the case, and that Py_FileSystemDefaultEncoding 
has no reasonable default when "python" is called from the build 
directory with the "C" locale.

For the record, when running the system "python" with the "C" locale, 
the filesystemencoding is gets set to 'ANSI_X3.4-1968'.

Last thing, in case it is of any use, all my testing is done on an amd64 
Debian stable system.

Cheers,
Baptiste
History
Date User Action Args
2010-10-29 12:52:28zegreeksetrecipients: + zegreek, vstinner, tarek, eric.araujo, nils
2010-10-29 12:52:26zegreeklinkissue6011 messages
2010-10-29 12:52:26zegreekcreate