diff options
author | Andras Timar <andras.timar@collabora.com> | 2014-01-16 17:00:06 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2014-01-16 18:20:59 +0000 |
commit | 5bf6064e69f1903f0d7682965b59fb5a0acb0af2 (patch) | |
tree | b0c7b35b90796c8df2cd112b8a7ad63e878557f5 | |
parent | bbaa97a79a72391aaa3dda1a55d92938ab3ea466 (diff) |
Environment variables can contain >127 characters
Change-Id: Iaeb690429d835ab2e6c13a8890a1b27b9405796a
Reviewed-on: https://gerrit.libreoffice.org/7476
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | basic/source/runtime/methods1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index 78ac359368d7..43384ae42fe8 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 ); } |