From 643743f2978721937badb24a432059d069afd96e Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 16 May 2003 00:17:16 +0000 Subject: better warning message --- src/i18n.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/i18n.cc b/src/i18n.cc index 5b3b2ca..833a094 100644 --- a/src/i18n.cc +++ b/src/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.9 2003/04/26 15:46:03 fluxgen Exp $ +// $Id: i18n.cc,v 1.10 2003/05/16 00:17:16 fluxgen Exp $ //usr GNU extensions #ifndef _GNU_SOURCE @@ -112,8 +112,10 @@ void I18n::openCatalog(const char *catalog) { m_catalog_fd = catopen(catalog_filename.c_str(), NL_CAT_LOCALE); #endif // MCLoadBySet - if (m_catalog_fd == (nl_catd)-1) - cerr<<"Warning: Failed to open catalog, using default messages."<