lib/scripts/recode.pl
author wenzelm
Thu Mar 03 21:30:31 2016 +0100 (2016-03-03)
changeset 62506 860cd901ab43
parent 52835 0906c00bb21d
permissions -rw-r--r--
clarified isabelle_process;
wenzelm@52835
     1
#
wenzelm@52835
     2
# Author: Makarius
wenzelm@52835
     3
#
wenzelm@52835
     4
# recode.pl - recode utf8 for ML
wenzelm@52835
     5
#
wenzelm@52835
     6
wenzelm@52835
     7
for (@ARGV) {
wenzelm@52835
     8
  utf8::upgrade($_);
wenzelm@52835
     9
  s/([\x80-\xff])/\\${\(ord($1))}/g;
wenzelm@62506
    10
  print $_;
wenzelm@52835
    11
}