win Locales - "Arabic, Gum" - Mailing list pgsql-general

From Jasen Betts
Subject win Locales - "Arabic, Gum"
Date
Msg-id iie82h$bs1$1@reversiblemaps.ath.cx
Whole thread Raw
List pgsql-general
What's the deal with locale codes on windows.
especially the settings like LC_NUMERIC ansd LC_MONETARY

on windows XP in 9.0 "show LC_MONETARY" displays them as "Arabic, Bharain"
or "English, UK", "French, Canada"  but everything right of the comma
seems to be ignored. (resulting in incorrect currency display for the
money type in all the above). This is further evidenced by nonsense
locales like "Arabic, Gum" and "English, Spin" and "Frech, Toast" being
accepted by postgres.

fortunately  you can get the correct behaviour by using an '_' in
plase of ', ' (I note that the documentations says to use underscore)

"Arabic_Bharain", "English_UK", "French_Canada"

The windows installer (initdb?) isn't smart enough to do this when
creating template1, it uses ', ' which fails to select the correct locale
silently whilst appearing to the untrained eye to have worked :(

--
⚂⚃ 100% natural

pgsql-general by date:

Previous
From: hlcborg
Date:
Subject: Re: Problem with encode () and hmac() in pgcrypto
Next
From: Thom Brown
Date:
Subject: Re: Issues with generate_series using integer boundaries