mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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
This commit is contained in:
parent
fe8d08d72f
commit
31d4e8d00f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user