From 31d4e8d00f1f5841a4778277bcafffcf09350038 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Fri, 8 Sep 2006 14:43:50 +0000 Subject: [PATCH] Do not print locale warning under cygwin, from Enrico git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14942 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/messages.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messages.C b/src/messages.C index fbab556bcb..0ffd990691 100644 --- a/src/messages.C +++ b/src/messages.C @@ -125,10 +125,10 @@ public: #endif // setlocale fails (returns NULL) if the corresponding locale // is not installed. - // On windows (mingw) it always returns NULL. + // On windows (mingw and cygwin) it always returns NULL. // Since this method gets called for every translatable // buffer string like e.g. "Figure:" we warn only once. -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(__CYGWIN__) static bool warned = false; if (!warned && !lc_msgs) { warned = true;