[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.1' - basic/source
Andras Timar
andras.timar at collabora.com
Thu Jan 16 07:54:26 PST 2014
basic/source/runtime/methods1.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6b07d7b52c96cf66f4db01b76f92c9d81cc71eba
Author: Andras Timar <andras.timar at collabora.com>
Date: Thu Jan 16 17:00:06 2014 +0100
Environment variables can contain >127 characters
Change-Id: Iaeb690429d835ab2e6c13a8890a1b27b9405796a
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index ae0c99a..8a29ca7 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -1326,7 +1326,7 @@ RTLFUNC(Environ)
const char* pEnvStr = getenv(aByteStr.getStr());
if ( pEnvStr )
{
- aResult = OUString::createFromAscii( pEnvStr );
+ aResult = OUString(pEnvStr, strlen(pEnvStr), osl_getThreadTextEncoding());
}
rPar.Get(0)->PutString( aResult );
}
More information about the Libreoffice-commits
mailing list