Re: Collation versioning
От | David Rowley |
---|---|
Тема | Re: Collation versioning |
Дата | |
Msg-id | CAApHDvq3FXpH268rt-6sD_Uhe7Ekv9RKXHFvpv==uh4c9OeHHQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Collation versioning (David Rowley <dgrowleyml@gmail.com>) |
Ответы |
Re: Collation versioning
|
Список | pgsql-hackers |
On Tue, 3 Nov 2020 at 12:29, David Rowley <dgrowleyml@gmail.com> wrote: > Running low on ideas for now, so thought I'd post this in case it > someone thinks of something else. FWIW, the attached does fix the issue for me. It basically just calls the function that converts the windows-type "English_New Zealand.1252" locale name string into, e.g. "en_NZ". Then, since GetNLSVersionEx() wants yet another variant with a - rather than an _, I've just added a couple of lines to swap the _ for a -. There's a bit of extra work there since IsoLocaleName() just did the opposite, so perhaps doing it that way was lazy of me. I'd have invented some other function if I could have thought of a meaningful name for it, then just have the ISO version of it swap - for _. It would be good if this could also be tested on Visual Studio version 12 as I see IsoLocaleName() does something else for anything before 15. I only have 10 and 17 installed and I see we don't support anything before 12 on master per: "Unable to determine Visual Studio version: Visual Studio versions before 12.0 aren't supported. at L:/Projects/Postgres/d/src/tools/msvc/Mkvcbuild.pm line 93." David
Вложения
В списке pgsql-hackers по дате отправления: