OSDN Git Service

* nkf.c(kanji_convert): Fix guess fallback.
[nkf/nkf.git] / test.pl
diff --git a/test.pl b/test.pl
index 6531ab3..4b34800 100644 (file)
--- a/test.pl
+++ b/test.pl
 # nkf PDS version passes Basic Conversion tests  using "nkf -iB -oB "
 #
 
-$nkf = 'MSWin32' eq $^O ? ".\\nkf" : "./nkf";
+if ($ARGV[0]) {
+    $nkf = $ARGV[0];
+} else {
+    $nkf = 'MSWin32' eq $^O ? ".\\nkf" : "./nkf";
+}
 # $nkf = "doscmd nkf.exe";
 
 # If you want to see the testing process, set next flag.