Enable named characters via \N{CHARNAME) #8

merged 1 commit into from Dec 19, 2011


None yet
2 participants

sartak commented Dec 19, 2011

From http://stackoverflow.com/questions/6162484/why-does-modern-perl-avoid-utf-8-by-default/6163129#6163129 (the big 7)

  1. ☑ decode @ARGV as UTF‑8 strings, and set the encoding of all three of stdin, stdout, and stderr to UTF‑8
  2. □ unicode strings ( #2 )
  3. □ enable unicode warnings ( #1 )
  4. ☑ declare that this source unit is encoded as UTF‑8
  5. ☑ declare that anything that opens a filehandles within this lexical scope but not elsewhere is to assume that that stream is encoded in UTF‑8 unless you tell it otherwise
  6. □ enable named characters via \N{CHARNAME} ( #8 ;) )
  7. ☑ if you have a DATA handle, you must explicitly set its encoding

I don't see any harm in loading the charnames module for users, since it doesn't export any functions, nor does it take particularly long to load.

@doherty doherty merged commit d7564ff into doherty:master Dec 19, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment