diff options
author | simonb <simonb> | 2007-01-05 16:10:56 (GMT) |
---|---|---|
committer | simonb <simonb> | 2007-01-05 16:10:56 (GMT) |
commit | 64fcedda00205f0c0b9464967f06322d4c7afa91 (patch) | |
tree | 4b0bbde89c7d1b11e16059632e8dd8eaba99b039 /src/FbTk/FbString.cc | |
parent | fcc756c052c91eb582b459684017e10898322eed (diff) | |
download | fluxbox-64fcedda00205f0c0b9464967f06322d4c7afa91.zip fluxbox-64fcedda00205f0c0b9464967f06322d4c7afa91.tar.bz2 |
use LC_TIME for interpreting clock locale.
Fix something likely to break locales on BSDs and things without
nl_langinfo
Diffstat (limited to 'src/FbTk/FbString.cc')
-rw-r--r-- | src/FbTk/FbString.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/FbString.cc b/src/FbTk/FbString.cc index c767a30..6614ec4 100644 --- a/src/FbTk/FbString.cc +++ b/src/FbTk/FbString.cc | |||
@@ -79,7 +79,7 @@ void init() { | |||
79 | string locale = setlocale(LC_CTYPE, NULL); | 79 | string locale = setlocale(LC_CTYPE, NULL); |
80 | size_t pos = locale.find('.'); | 80 | size_t pos = locale.find('.'); |
81 | if (pos != string::npos) | 81 | if (pos != string::npos) |
82 | locale_codeset = locale.substr(pos); | 82 | locale_codeset = locale.substr(pos+1); |
83 | #endif // CODESET | 83 | #endif // CODESET |
84 | 84 | ||
85 | #ifdef DEBUG | 85 | #ifdef DEBUG |