lib/scripts/recode.pl
author wenzelm
Sat, 15 Aug 2015 18:59:31 +0200
changeset 60933 6d03e05ef041
parent 52835 0906c00bb21d
child 62506 860cd901ab43
permissions -rw-r--r--
more robust access to stable tip version: take all pending edits into account, don't assume model for current buffer;

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

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