| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Restore old pgwin32_message_to_UTF16() behavior outside transact |
| Date: | 2015-08-15 00:26:19 |
| Message-ID: | E1ZQPIh-00085p-FM@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Restore old pgwin32_message_to_UTF16() behavior outside transactions.
Commit 49c817eab78c6f0ce8c3bf46766b73d6cf3190b7 replaced with a hard
error the dubious pg_do_encoding_conversion() behavior when outside a
transaction. Reintroduce the historic soft failure locally within
pgwin32_message_to_UTF16(). This fixes errors when writing messages in
less-common encodings to the Windows event log or console. Back-patch
to 9.4, where the aforementioned commit first appeared.
Per bug #13427 from Dmitri Bourlatchkov.
Branch
------
REL9_5_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/92516bf1954bd53914f0423bd2817487bd367596
Modified Files
--------------
src/backend/utils/mb/mbutils.c | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2015-08-15 02:14:55 | pgsql: Reject isolation test specifications with duplicate step names. |
| Previous Message | Peter Eisentraut | 2015-08-14 16:15:54 | pgsql: Update key words table for 9.5 |