lib/scripts/recode.pl
author wenzelm
Thu, 04 Feb 2016 16:30:01 +0100
changeset 62261 74dc98bd9f51
parent 52835 0906c00bb21d
child 62506 860cd901ab43
permissions -rw-r--r--
suppress ISABELLE_ROOT after init, to avoid conflict with ISABELLE_HOME when folding file names in "isabelle jedit" command-line tool;

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

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