lib/scripts/recode.pl
author wenzelm
Tue, 22 Apr 2014 23:49:15 +0200
changeset 56662 f373fb77e0a4
parent 52835 0906c00bb21d
child 62506 860cd901ab43
permissions -rw-r--r--
avoid "Adaptation of argument list by inserting ()" -- deprecated in scala-2.11.0;

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

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