basic/source/runtime/methods1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit da67f5b162702c847674b8736672961bb26d5411 Author: Andras Timar <andras.ti...@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 294584e..a2f440c 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 ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits