From f77ea4721cb610f94611a9619e1245ce16668706 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 19 Feb 2010 11:28:27 +0000 Subject: [PATCH] 2010-02-19 Tatsuhiro Tsujikawa Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed because without it localized error messages are not printed correctly. * src/Platform.cc --- ChangeLog | 7 +++++++ src/Platform.cc | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index ce76473f..c0cacd0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-02-19 Tatsuhiro Tsujikawa + + Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed + because without it localized error messages are not printed + correctly. + * src/Platform.cc + 2010-02-19 Tatsuhiro Tsujikawa Added unit tests for util::getContentDispositionFilename() from diff --git a/src/Platform.cc b/src/Platform.cc index 22bedec7..74f42a5d 100644 --- a/src/Platform.cc +++ b/src/Platform.cc @@ -91,6 +91,7 @@ bool Platform::setUp() _initialized = true; #ifdef ENABLE_NLS + setlocale (LC_CTYPE, ""); setlocale (LC_MESSAGES, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE);