lib/scripts/recode.pl
author blanchet
Wed, 03 Sep 2014 22:47:05 +0200
changeset 58165 2ec97d9c1e83
parent 52835 0906c00bb21d
child 62506 860cd901ab43
permissions -rw-r--r--
'prove_sorry' is too dangerous here -- the tactic is sometimes applied to non-theorems

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

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