Re: not start
zunbeltz <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.pybliographer |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 5 Apr 2005, Tom Parker wrote: > zunbeltz wrote: > > The output of this command is > > > > (None, None) > > > > This means that there is an error with the locale module? > > That output means that we don't have any better idea about the proper > file encoding, and so we should decide to stick to default ascii file > encodings. > > >>If that's so, then can you please inform us of the environment variables > >>that you have set to 'eu_ES' so that we can work around this bug for > >>now, but I would also advise reporting this to the main python bugs > >>reporting system > >>(http://sourceforge.net/tracker/?group_id=5470&atid=105470) as this is > >>actually a problem in Python itself, rather than in Pybliographer. > > > > LANGUAGE is set to eu_ES. If you say that the output of the command above > > is incorrect, I would report the bug to python myself. > > I've now managed to reproduce the bug, with the following command line > > LANG=eu_ES python2.4 -c "import locale; > locale.setlocale (locale.LC_ALL, '')" > > Given that the python manuals specify > "locale.setlocale(locale.LC_ALL,'')" as definately being the correct > command to tell python to use the user's default settings, this is a bug > in python itself, and should be reported as such to the Python developers. > > However, until this gets fixed there, I've just written a quick patch > against pybliographer that will work around this problem (by ignoring > your locale settings if errors occur while trying to set them), which > I've attached. > Thanks, I've aplied the patch and it works. Do you want to submit the bug to python yourself (you could explain the problem better than me), but if you are busy i will do it. Thanks and good work with pybliograph* Zunbeltz > Tom Parker > -- > [email protected] - http://tevp.net > Illegitimus non carborundum > -- Zunbeltz Izaola Azkona (zunbeltz at wm dot lc dot ehu dot es) Materia Kondentsatuaren Fisika Saila | Zientzia eta Teknologia Fakultatea | Telf: 34 946015326 Euskal Herriko Unibertsitatea | PK 644 | Fax: 34 944648500 48080 Bilbo (SPAIN) | -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click