aboutsummaryrefslogtreecommitdiff
path: root/src/I18n.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-21 14:14:40 (GMT)
committerfluxgen <fluxgen>2004-01-21 14:14:40 (GMT)
commit5e5118b4e3b283220533aa4845e879150ae705ee (patch)
tree54686f39a478492fe64e56f8fb8cf39a370f22e6 /src/I18n.cc
parent9c0272004e2509a2206d94dfbe30bb035c8c6d67 (diff)
downloadfluxbox_pavel-5e5118b4e3b283220533aa4845e879150ae705ee.zip
fluxbox_pavel-5e5118b4e3b283220533aa4845e879150ae705ee.tar.bz2
using empty instead of size
Diffstat (limited to 'src/I18n.cc')
-rw-r--r--src/I18n.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/I18n.cc b/src/I18n.cc
index 222fe03..43f8cea 100644
--- a/src/I18n.cc
+++ b/src/I18n.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: I18n.cc,v 1.5 2004/01/06 13:42:47 grubert Exp $ 25// $Id: I18n.cc,v 1.6 2004/01/21 14:12:51 fluxgen Exp $
26 26
27//usr GNU extensions 27//usr GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -56,7 +56,7 @@ I18n::I18n():m_multibyte(false), m_catalog_fd((nl_catd)(-1)) {
56 //make sure we don't get 0 to m_locale string 56 //make sure we don't get 0 to m_locale string
57 char *temp = setlocale(LC_ALL, ""); 57 char *temp = setlocale(LC_ALL, "");
58 m_locale = ( temp ? temp : ""); 58 m_locale = ( temp ? temp : "");
59 if (m_locale.size() == 0) { 59 if (m_locale.empty()) {
60 cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl; 60 cerr<<"Warning: Failed to set locale, reverting to \"C\""<<endl;
61#endif // HAVE_SETLOCALE 61#endif // HAVE_SETLOCALE
62 62