Re: check_locale() and the empty string - Mailing list pgsql-bugs

From Jeff Davis
Subject Re: check_locale() and the empty string
Date
Msg-id 1331571281.6425.47.camel@jdavis
Whole thread Raw
In response to check_locale() and the empty string  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-bugs
On Sun, 2012-03-11 at 11:20 -0700, Jeff Davis wrote:
> 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.

Trivial patch attached.

Regards,
    Jeff Davis

Attachment

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: BUG #6512: Bug with prepared statement and timestamp + interval
Next
From: Jaime Casanova
Date:
Subject: Re: BUG #6517: Volatile function erroneously optimized, does not consider change in schema path