Re: Can we get rid of GetLocaleInfoEx() yet?
Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
From: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-03-29T17:06:56Z
Lists: pgsql-hackers
On Sun, Mar 29, 2020 at 7:00 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > > In general, I think the problem is that we might be dealing with a > Unix-style locale string, in which the encoding name might be quite > a few other things besides "utf8". But actually your patch works > for that too, since what's going to happen next is we'll search the > encoding_match_list[] for a match. I do suggest being a bit more > paranoid about what's a codepage number though, as attached. > (Untested, since I lack a Windows environment, but it's pretty > straightforward code.) > It works for the issue just fine, and more comments make a better a patch, so no objections from me. Regards, Juan José Santamaría Flecha
Commits
-
Be more careful about extracting encoding from locale strings on Windows.
- f15f5edee5b4 9.6.18 landed
- de5b9db3644d 12.3 landed
- d59e83cf5925 10.13 landed
- 8c49454caa63 13.0 landed
- 6dac1e858b12 9.5.22 landed
- 4bc3a16677be 11.8 landed
-
Support building with Visual Studio 2015
- 0fb54de9aa4f 9.6.0 cited