Fix encoding issue when lc_monetary or lc_numeric are different encoding

Itagaki Takahiro <itagaki.takahiro@gmail.com>

Commit: 95a777c612c6dcebe2f17c57c35f7e7c93714484
Author: Itagaki Takahiro <itagaki.takahiro@gmail.com>
Date: 2010-04-22T01:55:52Z
Releases: 9.0.0
Fix encoding issue when lc_monetary or lc_numeric are different encoding
from lc_ctype, that could happen on Windows. We need to change lc_ctype
together with lc_monetary or lc_numeric, and convert strings in lconv
from lc_ctype encoding to the database encoding.

The bug reported by Mikko, original patch by Hiroshi Inoue,
with changes by Bruce and me.

Files

PathChange+/−
src/backend/utils/adt/pg_locale.c modified +72 −13