It sounded like you meantIt sounds like you want the utf8 flag on handles to go away and just have the output encoding depend on perl's internal encoding of the dataNo, that's not an accurate characterization. I would like filehandles -- particularly STDOUT -- to be encoding-agnostic by default. However, it should be possible to turn on encoding enforcement using the current mechanism.
should output three bytes, not two (if STDOUT is not utf8) or four (if STDOUT is utf8, e.g. with -CO). If that's not your "encoding-agnostic" (that I call "the output depending on perl's internal encoding of the data"), I'm not sure what you mean by "encoding-agnostic".perl -we'$_ = "\xb1"; print; utf8::upgrade($_); print'
In reply to Re^3: Interventionist Unicode Behaviors
by ysth
in thread Interventionist Unicode Behaviors
by creamygoodness
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |