[parrot/parrot] bad059: [core] Downgrade external ascii on multi-byte plat...
GitHub
noreply at github.com
Tue Nov 11 09:59:30 UTC 2014
Branch: refs/heads/smoke-me/downgrade-ascii-gh1098
Home: https://github.com/parrot/parrot
Commit: bad0597d90c823208ac743de0c151bb020d1c468
https://github.com/parrot/parrot/commit/bad0597d90c823208ac743de0c151bb020d1c468
Author: Reini Urban <rurban at cpanel.net>
Date: 2014-11-11 (Tue, 11 Nov 2014)
Changed paths:
M ChangeLog
M src/string/api.c
Log Message:
-----------
[core] Downgrade external ascii on multi-byte platform encodings
We should scan those external strings for pure-ascii and set the
ascii encoding if the multibyte platform encoding is not needed.
This is mostly helpful to Getopt handling and is better then downgrade
to binary. We cannot set latin1 as this is incompatible to utf-8.
On Parrot_str_from_platform_cstring we can even reuse the setjmp for
the mult-byte exception in to_encoding.
More information about the parrot-commits
mailing list