| From: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
|---|---|
| To: | Andrey Borodin <x4mmm(at)yandex-team(dot)ru> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Windows locales and tests portability |
| Date: | 2026-02-06 23:39:01 |
| Message-ID: | CA+hUKGK8Mru903e+ETdi8-cuoMLDFcggyE4ZzSuJtu9oVaUZmg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Feb 6, 2026 at 8:03 PM Andrey Borodin <x4mmm(at)yandex-team(dot)ru> wrote:
> Windows MSVC strtod(): seems to ignore environment variables entirely and use the system's regional settings (Russian locale ,)
Hmm, right, we probably do setlocale(..., ""), which gets you an
"implementation-defined native environment", and Windows implements
that as you say. I suppose if we wanted it to work like Unix, we
could call getenv("LC_XXX") and feed the results to setlocale()
ourselves... maybe a terrible idea, IDK.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Euler Taveira | 2026-02-07 01:05:28 | Re: log_min_messages per backend type |
| Previous Message | Thomas Munro | 2026-02-06 23:09:22 | Re: [PING] fallocate() causes btrfs to never compress postgresql files |