lib/scripts/recode.pl
author wenzelm
Fri, 02 Oct 2015 23:22:49 +0200
changeset 61319 d84b4d39bce1
parent 52835 0906c00bb21d
child 62506 860cd901ab43
permissions -rw-r--r--
more explicit umask for important directories: e.g. relevant for Windows 10, where implicit g=rwx leads to odd failure of chmod -w for heap images;

#
# Author: Makarius
#
# recode.pl - recode utf8 for ML
#

for (@ARGV) {
  utf8::upgrade($_);
  s/([\x80-\xff])/\\${\(ord($1))}/g;
  print $_, " ";
}