check_locale() and the empty string

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема check_locale() and the empty string
Дата
Msg-id 1331490004.6425.20.camel@jdavis
обсуждение исходный текст
Ответы Re: check_locale() and the empty string  (Jeff Davis <pgsql@j-davis.com>)
Re: check_locale() and the empty string  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following SQL succeeds:

  create database foodb with
    template = template0
    encoding = 'UTF8'
    lc_collate=''
    lc_ctype='';

(any other template fails because it actually checks for a match against
the template).

The problem seems to be in check_locale(), which just checks for a
non-NULL return value from setlocale(). However, the manual for
setlocale() says:

  If locale is "", each part of the locale that should be modified
  is set according  to  the  environment  variables.   The details
  are implementation-dependent.

Surely we don't want it to be set from the environment, right?

Regards,
    Jeff Davis

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

Предыдущее
От: koizumistr@minos.ocn.ne.jp
Дата:
Сообщение: BUG #6525: t_infomask2 is uint16, not int16
Следующее
От: Josh Kupershmidt
Дата:
Сообщение: Re: BUG #6524: lpermission denied to create extension "ltree". Must be superuser to create this extension.