On 6 ruj, 17:53, Thomas Jollans wrote:
> On 06/09/11 16:46, ssegvic wrote:
>
> > For the moment, I only wish to properly sort a Croatian text file
> > both on Windows and Linux (I am a cautious guy, I like reachable
> > goals).
> > When the locale is properly s
On 6 ruj, 17:53, Thomas Jollans wrote:
> On 06/09/11 16:46, ssegvic wrote:
>
> > For the moment, I only wish to properly sort a Croatian text file
> > both on Windows and Linux (I am a cautious guy, I like reachable
> > goals).
> > When the locale is properly s
On 6 ruj, 22:58, garabik-news-2005...@kassiopeia.juls.savba.sk wrote:
> Thomas Jollans wrote:
> > It looks like you don't actually care about the encoding: in your first
> > example, you use the default system encoding, which you do not control,
> > and in your second example, you're using two dif
On 6 ruj, 15:13, Vlastimil Brom wrote:
> There may be some differences btween OSes end the versions, but using
> python 2.7 and 3.2 on Win XP and Win7 (Czech)
> I get the following results for setlocale:
>
> >>> locale.setlocale(locale.LC_ALL,'Croatian')
>
> 'Croatian_Croatia.1250'>>> locale.getl
On 6 ruj, 13:16, Thomas Jollans wrote:
> > locale.setlocale(locale.LC_ALL, (myISOCountryCode,
> > locale.getpreferredencoding()))
>
> As far as I can tell, this does work. Can you show us a traceback?
Sorry, I was imprecise.
I wanted to say that the above snippet
does not work both on Windows an
re a way for writing portable Python code dealing with
locales
(as sketched in the beginning)?
2. If not, is there anything wrong with that idea?
3. What is the status of locale.locale_alias (official documentation
does not mention it)?
Cheers,
Sinisa
http://www.zemris.fer.hr/~ssegvic/index_en.html
--
http://mail.python.org/mailman/listinfo/python-list