]> mj.ucw.cz Git - libucw.git/commitdiff
adapted to UNDEFINED characters
authorRobert Spalek <robert@ucw.cz>
Fri, 4 Jul 2003 12:48:39 +0000 (12:48 +0000)
committerRobert Spalek <robert@ucw.cz>
Fri, 4 Jul 2003 12:48:39 +0000 (12:48 +0000)
charset/misc/trunicode

index 73f5d371b7861f294427907f98640ac1f2b5f9f3..6e50073db34595beb3efc748d1b71855547d1a79 100755 (executable)
@@ -15,8 +15,10 @@ foreach $file (@ARGV)
        {
                next if /^#/;
                chop;
-               ($code, $unicode, $comment) = /^0x(..)\t0x(....)\t#\t(.*)$/;
-               print fo "$code\t$unicode\t$comment\n";
+               if (($code, $unicode, $comment) = /^0x(..)\t0x(....)\t#\t?(.*)$/)
+               {
+                       print fo "$code\t$unicode\t$comment\n";
+               }
        }
        close(fo);
        close(fi);