Encode.pm change to the UTF8 flag
authorDan Scott <dscott@laurentian.ca>
Mon, 21 Oct 2013 15:58:06 +0000 (11:58 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 21 Oct 2013 15:58:06 +0000 (11:58 -0400)
commit62cbc55f7dac21d568382fb7d4c59b5d597aaec6
treeb4c15d8d1684b7852c396193e84f3263955ac109
parentfc01be26dcd91714217a9f5090f07a5966b757b6
Encode.pm change to the UTF8 flag

In the past, decode_utf8() has the effect of applying the UTF8 flag to
the decoded strings. However, Encode.pm changed around 2.53 and resulted
in wide-character errors preventing the likes of --load-all-sample from
working.

It seems that we can simply normalize the input to normalization form D,
then recompose it to form C on the way out, and sidestep the
decode_utf8() step entirely.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/002.functions.config.sql