develooper Front page | perl.perl5.porters | Postings from February 2003

update on my -C plans

Thread Next
Jarkko Hietaniemi
February 10, 2003 00:27
update on my -C plans
Message ID:
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 <> "There is this special
biologist word we use for 'stable'.  It is 'dead'." -- Jack Cohen

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About