summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-07-23 04:48:40 +0000
committerManolo Gouy <Manolo>2016-07-23 04:48:40 +0000
commit54dcf145feb39f4eb2e9cd78de2ce469acd3e28c (patch)
treeb04fc82b0c3862cd915ec2674cdefdbb5cc30e87 /src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
parent67213cf0d83b09d6a990879b77f250551d91400f (diff)
Fix Fl_X11_System_Driver::utf8locale() that did not work when no locale is set.
Also, minor simplification of Fl_WinAPI_System_Driver::utf8locale(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
index ef6070e84..f7d37fecb 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
@@ -406,10 +406,7 @@ unsigned Fl_WinAPI_System_Driver::utf8fromwc(char* dst, unsigned dstlen, const w
int Fl_WinAPI_System_Driver::utf8locale()
{
- static int ret = 2;
- if (ret == 2) {
- ret = GetACP() == CP_UTF8;
- }
+ static int ret = (GetACP() == CP_UTF8);
return ret;
}