summaryrefslogtreecommitdiff
path: root/src/I18n.cc
diff options
context:
space:
mode:
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