Front page | perl.perl5.porters |
Postings from February 2003
update on my -C plans
Thread Next
From:
Jarkko Hietaniemi
Date:
February 10, 2003 00:27
Subject:
update on my -C plans
Message ID:
20030210082702.GA16378@kosh.hut.fi
I think I'm still going to reshape the -C (PERL_UTF8_LOCALE) interface
a bit. My current plans are as follows:
- yes, I think -C is better than -u
- the env var will be PERL_UNICODE, not PERL_UTF8_LOCALE
- the -C (if present) will completely override PERL_UNICODE (if present)
- if neither is present no I/O will be UTF-8-ied, regardless of locale vars
- the -C will be like -D, that is, followed by a bunch of option letters,
with no ":" in between (the use of -C should have been quite low
(according to Sarathy, probably zero) that this change shouldn't bother
people too much)
- the option letters will be
I STDIN is assumed to be in UTF-8
O STDOUT is in UTF-8
E STDERR is in UTF-8
S I + O + E
i a default open layer for input is :utf8
o a default open layer for output is :utf8
D i + o
L make IOEio (SD) conditional on locale variables
W (Win32 only) use "wide syscalls" APIs
- without the "L" the IOEio (SD) make things unconditionally UTF-8
- the "W" is dependent on Sarathy, whether he wants to revive the option
- if no option letters are specified, "SDL" will be assumed (or "LSD",
if that looks better to you :-)
- yes, Merijn, this suggestion does not include anything about the
bufferedness of the STD* handles-- I was thinking only about Unicode
features here.
--
Jarkko Hietaniemi <jhi@iki.fi> http://www.iki.fi/jhi/ "There is this special
biologist word we use for 'stable'. It is 'dead'." -- Jack Cohen
Thread Next
-
update on my -C plans
by Jarkko Hietaniemi