summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authormfe <mfe@openoffice.org>2000-10-31 14:29:02 +0000
committermfe <mfe@openoffice.org>2000-10-31 14:29:02 +0000
commit18cb2e4846b6366254d4641018718f422170f67b (patch)
tree16895f6c11279877b0aa692ff46181a081c5d33e /sal/osl
parent0c8c08e09f11db81c46105b83dcb233e3692169b (diff)
ustring creation woth textencoding
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/profile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.c
index b83c39bb9baa..aa9e16dee810 100644
--- a/sal/osl/unx/profile.c
+++ b/sal/osl/unx/profile.c
@@ -2,9 +2,9 @@
*
* $RCSfile: profile.c,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: obr $ $Date: 2000-10-30 11:56:26 $
+ * last change: $Author: mfe $ $Date: 2000-10-31 15:29:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1280,7 +1280,8 @@ sal_Bool SAL_CALL osl_getProfileName(rtl_uString* ustrPath, rtl_uString* ustrNam
/* Convert result to UNC notation */
- rtl_uString_newFromAscii(&strNativeName,pszBuffer);
+ rtl_string2UString( strNativeName, pszBuffer, rtl_str_getLength( pszBuffer ), osl_getThreadTextEncoding(), OUSTRING_TO_OSTRING_CVTFLAGS );
+
osl_normalizePath( strNativeName, strProfileName );
rtl_uString_release( strNativeName );