Re: force C locale for temp regression installations

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: force C locale for temp regression installations
Дата
Msg-id 16121.1125078172@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: force C locale for temp regression installations  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-patches
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> OK, so what is your default locale on that machine?  In particular, is
>> it UTF16-based?

> initdb picks up: "English_United States.1252"

Yup.  So it was trying to use this little hack:

        /* Win32 has strncoll(), so use it to avoid copying */
        return _strncoll(arg1, arg2, Min(len1, len2));

which does not actually do what's desired, if the strings are of
different length.  That's what we get for focusing on the hard case
and not testing the easy case ;-)

I've committed a fix.

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: force C locale for temp regression installations
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] Proposed patch to getaddrinfo.c to support