forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit35eeea6
committed
Use thread-safe nl_langinfo_l(), not nl_langinfo().
This gets rid of some setlocale() calls. The remaining call tosetlocale() in pg_get_encoding_from_locale() is a query of the nameof the current locale when none was provided (in a multi-threaded futurethat would need more work).All known non-Windows targets have nl_langinfo_l(), from POSIX 2008, andfor Windows we already do something thread-safe.Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Discussion:https://postgr.es/m/CA%2BhUKGJqVe0%2BPv9dvC9dSums_PXxGo9SWcxYAMBguWJUGbWz-A%40mail.gmail.com1 parent14c648f commit35eeea6
1 file changed
+19
-48
lines changedLines changed: 19 additions & 48 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
306 | 306 |
| |
307 | 307 |
| |
308 | 308 |
| |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 |
| - | |
313 |
| - | |
314 |
| - | |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 |
| - | |
328 |
| - | |
329 |
| - | |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 |
| - | |
335 | 309 |
| |
336 |
| - | |
337 |
| - | |
338 |
| - | |
339 |
| - | |
340 |
| - | |
| 310 | + | |
341 | 311 |
| |
342 | 312 |
| |
343 |
| - | |
344 |
| - | |
345 |
| - | |
346 |
| - | |
347 |
| - | |
348 |
| - | |
| 313 | + | |
| 314 | + | |
349 | 315 |
| |
350 |
| - | |
351 |
| - | |
352 | 316 |
| |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
357 | 323 |
| |
358 | 324 |
| |
359 |
| - | |
360 |
| - | |
361 |
| - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
362 | 334 |
| |
363 |
| - | |
| 335 | + | |
364 | 336 |
| |
365 |
| - | |
366 | 337 |
| |
367 | 338 |
| |
368 | 339 |
| |
|
0 commit comments
Comments
(0)