summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-09-28 11:21:23 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-09-28 11:21:23 +0000
commit4c8aec506ebabecfae0b1dcd7a6d5de6cdfd1ae4 (patch)
treeb66141c5510b0ee1b262ddcc1f3978d7d6aa0927
parentdf77274fabaf0109e6932784e3468e15b525e181 (diff)
INTEGRATION: CWS dr37 (1.3.56); FILE MERGED
2005/06/16 12:34:23 dr 1.3.56.1: #i50822# place the 'minus' between language and country correctly
-rw-r--r--shell/source/backends/localebe/localebackend.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/source/backends/localebe/localebackend.cxx b/shell/source/backends/localebe/localebackend.cxx
index 4945c029b406..d7b6b478f41c 100644
--- a/shell/source/backends/localebe/localebackend.cxx
+++ b/shell/source/backends/localebe/localebackend.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: localebackend.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 19:48:13 $
+ * last change: $Author: hr $ $Date: 2005-09-28 12:21:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -219,7 +219,8 @@ rtl::OUString ImplGetLocale(LCID lcid)
if( cp > buffer )
{
if( 0 < GetLocaleInfo( lcid, LOCALE_SISO3166CTRYNAME, cp, buffer + 8 - cp) )
- *cp = '-';
+ // #i50822# minus character must be written before cp
+ *(cp - 1) = '-';
return rtl::OUString::createFromAscii(buffer);
}