X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4f3c8f3bba12844f2d8b8a767d9209f50ebd90c..16a2525ff288d91605e5b54fc6ac269b45dddf7d:/src/common/intl.cpp

diff --git a/src/common/intl.cpp b/src/common/intl.cpp
index 9fa0ee8f8f..14b2469f3e 100644
--- a/src/common/intl.cpp
+++ b/src/common/intl.cpp
@@ -1407,7 +1407,7 @@ LCTYPE GetLCTYPEFormatFromLocalInfo(wxLocaleInfo index)
 } // anonymous namespace
 
 /* static */
-wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory WXUNUSED(cat))
+wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory cat)
 {
     wxUint32 lcid = LOCALE_USER_DEFAULT;
     if ( wxGetLocale() )
@@ -1431,7 +1431,12 @@ wxString wxLocale::GetInfo(wxLocaleInfo index, wxLocaleCategory WXUNUSED(cat))
             break;
 
         case wxLOCALE_DECIMAL_POINT:
-            if ( ::GetLocaleInfo(lcid, LOCALE_SDECIMAL, buf, WXSIZEOF(buf)) )
+            if ( ::GetLocaleInfo(lcid,
+                                 cat == wxLOCALE_CAT_MONEY
+                                     ? LOCALE_SMONDECIMALSEP
+                                     : LOCALE_SDECIMAL,
+                                 buf,
+                                 WXSIZEOF(buf)) )
                 str = buf;
             break;