diff options
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index 19784f4ec900..69c8c568b16a 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -702,14 +702,17 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const { OUString aStr = GetOUString(); + SvtSysLocale aSysLocale; + const CharClass& rCharClass = aSysLocale.GetCharClass(); + if( pFmt->equalsIgnoreAsciiCase( VBAFORMAT_LOWERCASE ) ) { - rRes = aStr.toAsciiLowerCase(); + rRes = rCharClass.lowercase( aStr ); return; } if( pFmt->equalsIgnoreAsciiCase( VBAFORMAT_UPPERCASE ) ) { - rRes = aStr.toAsciiUpperCase(); + rRes = rCharClass.uppercase( aStr ); return; } |