diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2001-02-19 16:44:20 +0000 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2001-02-19 16:44:20 +0000 |
commit | c8166fc4f38648b9ea4f62a8d6203f8445c14c6d (patch) | |
tree | 13ae018b948f01783843b2437313675a8d4a9331 /stoc/source/simpleregistry/simpleregistry.cxx | |
parent | 30e4f477a5818a808a7a15dc2b6e1172b7ac83de (diff) |
#83978# change text encoding for saving ascii values in the registry
Diffstat (limited to 'stoc/source/simpleregistry/simpleregistry.cxx')
-rw-r--r-- | stoc/source/simpleregistry/simpleregistry.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/stoc/source/simpleregistry/simpleregistry.cxx b/stoc/source/simpleregistry/simpleregistry.cxx index 48efc14ff3c4..d729706bea34 100644 --- a/stoc/source/simpleregistry/simpleregistry.cxx +++ b/stoc/source/simpleregistry/simpleregistry.cxx @@ -2,9 +2,9 @@ * * $RCSfile: simpleregistry.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: jsc $ $Date: 2000-12-04 12:15:46 $ + * last change: $Author: jsc $ $Date: 2001-02-19 17:44:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -467,7 +467,7 @@ OUString SAL_CALL RegistryKeyImpl::getAsciiValue( ) throw InvalidValueException(); } else { - OUString ret(OStringToOUString(value, RTL_TEXTENCODING_ASCII_US)); + OUString ret(OStringToOUString(value, RTL_TEXTENCODING_UTF8)); delete(value); return ret; } @@ -490,7 +490,7 @@ void SAL_CALL RegistryKeyImpl::setAsciiValue( const OUString& value ) throw InvalidRegistryException(); } else { - OString sValue = OUStringToOString(value, RTL_TEXTENCODING_ASCII_US); + OString sValue = OUStringToOString(value, RTL_TEXTENCODING_UTF8); sal_uInt32 size = sValue.getLength()+1; if ( m_key.setValue(OUString(), RG_VALUETYPE_STRING, (RegValue)(sValue.getStr()), size) ) @@ -525,7 +525,7 @@ Sequence< OUString > SAL_CALL RegistryKeyImpl::getAsciiListValue( ) for (sal_uInt32 i=0; i < size; i++) { seqValue.getArray()[i] = - OStringToOUString(tmpValue.getElement(i), RTL_TEXTENCODING_ASCII_US); + OStringToOUString(tmpValue.getElement(i), RTL_TEXTENCODING_UTF8); } return seqValue; @@ -555,7 +555,7 @@ void SAL_CALL RegistryKeyImpl::setAsciiListValue( const Sequence< OUString >& se for (sal_uInt32 i=0; i < length; i++) { - pSValue[i] = OUStringToOString(seqValue.getConstArray()[i], RTL_TEXTENCODING_ASCII_US); + pSValue[i] = OUStringToOString(seqValue.getConstArray()[i], RTL_TEXTENCODING_UTF8); tmpValue[i] = (char*)pSValue[i].getStr(); } |