From 9c3ad19748f1b38e54fcf421c9703f9c4ebf9d7f Mon Sep 17 00:00:00 2001 From: akir Date: Thu, 7 Oct 2004 09:52:28 +0000 Subject: added LC_TIME so the ClockTool gets the right locale --- src/FbTk/I18n.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FbTk/I18n.cc b/src/FbTk/I18n.cc index a077758..d388a97 100644 --- a/src/FbTk/I18n.cc +++ b/src/FbTk/I18n.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: I18n.cc,v 1.3 2004/08/31 15:26:39 rathnor Exp $ +// $Id: I18n.cc,v 1.4 2004/10/07 09:52:28 akir Exp $ /* Note: * A good reference for the older non-gettext style I18n @@ -88,6 +88,8 @@ I18n::I18n():m_multibyte(false), m_catalog_fd((nl_catd)(-1)) { #ifdef HAVE_SETLOCALE } else { + + setlocale(LC_TIME, ""); // MB_CUR_MAX returns the size of a char in the current locale if (MB_CUR_MAX > 1) m_multibyte = true; -- cgit v0.11.2