summaryrefslogtreecommitdiff
path: root/codepage
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-25 12:14:05 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-25 12:14:05 -0700
commit7bce9c47f6561f321d5a371aa38f77749f6bd01e (patch)
tree0d13926a023134324b020778812109436c5060b1 /codepage
parent385e460b5a9738eda6a4344012bad09b431a4ee0 (diff)
downloadsyslinux-7bce9c47f6561f321d5a371aa38f77749f6bd01e.tar.gz
cptable: error out on incorrect usage
Diffstat (limited to 'codepage')
-rwxr-xr-xcodepage/cptable.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/codepage/cptable.pl b/codepage/cptable.pl
index 5f6f5389..416e7303 100755
--- a/codepage/cptable.pl
+++ b/codepage/cptable.pl
@@ -5,7 +5,7 @@
# matching.)
#
# Usage:
-# cptable.pl UnicodeData filesystem-cp.txt console-cp.txt output.bin
+# cptable.pl UnicodeData filesystem-cp.txt console-cp.txt output.cp
#
# Note: for the format of the UnicodeData file, see:
# http://www.unicode.org/Public/UNIDATA/UCD.html
@@ -13,6 +13,10 @@
($ucd, $cpfs, $cpco, $cpout) = @ARGV;
+if (!defined($cpout)) {
+ die "Usage: $0 UnicodeData fs-cp.txt console-cp.txt output.cp\n";
+}
+
%ucase = ();
%lcase = ();
%tcase = ();