Skip to content

System.Environment.getArgs does not UTF-8 decode arguments even in UTF-8 locale

getArgs is implemented as simply dereferencing argv and returning a list of the octets passed as arguments, resulting in unexpected results for multibyte characters. I think it would be more natural if getArgs performed locale-relevant decoding, and a more low-level function (perhaps returning ByteStrings) was available for when you really want the raw arguments.

Trac metadata
Trac field Value
Version 7.0.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information