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 facundobatista
Recipients facundobatista, motteneder
Date 2008-02-26.12:19:03
SpamBayes Score 0.0028918143
Marked as misclassified No
Message-id <1204028348.89.0.0837998855136.issue2173@psf.upfronthosting.co.za>
In-reply-to
Content
Same here, Ubuntu on x86 32b.

Doing first a "make clean", ./configure runs ok.

But then, in the "make":

...
  File "/home/facundo/devel/reps/python/py3k/Lib/locale.py", line 479,
in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
make: *** [sharedmods] Error 1

Full make output is attached.

The problem seems to be in the setlocale module. I compiled everything
with LANG in es_AR.UTF-8, but then executing Python again with a bad locale:

facundo@virtub:~/devel/reps/python/py3k$ LANG=UTF-8 ./python 
Python 3.0a2+ (py3k:61084, Feb 26 2008, 10:12:19) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/facundo/devel/reps/python/py3k/Lib/locale.py", line 515,
in getpreferredencoding
    setlocale(LC_CTYPE, "")
  File "/home/facundo/devel/reps/python/py3k/Lib/locale.py", line 479,
in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
>>> 

Regards,
History
Date User Action Args
2008-02-26 12:19:09facundobatistasetspambayes_score: 0.00289181 -> 0.0028918143
recipients: + facundobatista, motteneder
2008-02-26 12:19:08facundobatistasetspambayes_score: 0.00289181 -> 0.00289181
messageid: <1204028348.89.0.0837998855136.issue2173@psf.upfronthosting.co.za>
2008-02-26 12:19:07facundobatistalinkissue2173 messages
2008-02-26 12:19:07facundobatistacreate