basic/source/runtime/methods1.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6b07d7b52c96cf66f4db01b76f92c9d81cc71eba
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 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 );
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to