To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=108618


User sb changed the following:

                What    |Old value                 |New value
================================================================================
                      CC|'cmc,vg'                  |'cmc,sb,vg'
--------------------------------------------------------------------------------




------- Additional comments from [email protected] Mon Jan 25 08:12:15 +0000 
2010 -------
@tono:  rtl::OUString::createFromAscii(getenv("PATH")) is wrong, as PATH may
contain non-ASCII characters.  You would need something like
rtl_convertStringToUString(&path.pData, getenv("PATH"), strlen(getenv("PATH")),
osl_getThreadTextEncoding(), RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_ERROR |
RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_ERROR |
RTL_TEXTTOUNICODE_FLAGS_INVALID_ERROR), handling a false return code
appropriately, to do the conversion correctly.  And this would still produce
wrong results if the (UTF-16) Windows PATH environment variable happens to
contain encodings of Unicode characters that cannot be represented in the
current Windows code page (osl_getThreadTextEncoding).

In what is apparently Windows-only code, I would always use Windows-specific
_wgetenv plus any necessary wchar_t/sal_Unicode casting, as it avoids problems
due to character encoding conversion failures.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to