lib/scripts/recode.pl
author wenzelm
Thu, 09 Oct 2014 13:56:27 +0200
changeset 58640 37f852399a32
parent 52835 0906c00bb21d
child 62506 860cd901ab43
permissions -rw-r--r--
prefer original TEMP from Windows, e.g. relevant for Isabelle distribution within read-only directory (due to its bundled Cygwin and /tmp inside of it);

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

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