diff options
| author | fukachan <fukachan> | 2002-05-11 09:45:48 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-05-11 09:45:48 +0000 |
| commit | 2ff5effa203c5c7bc9273486d71467219070f010 (patch) | |
| tree | 2c78f18f3be77cf0ba12614a92448329c71d7bb7 | |
| parent | da38d69eb3f390dad88b85ed02ae6c4d9d63a1d7 (diff) | |
| download | fml8-2ff5effa203c5c7bc9273486d71467219070f010.tar.gz fml8-2ff5effa203c5c7bc9273486d71467219070f010.tar.bz2 fml8-2ff5effa203c5c7bc9273486d71467219070f010.zip | |
_look_not_iso2022jp_string: add trivial check
| -rw-r--r-- | fml/lib/FML/Language/Japanese/Utils.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fml/lib/FML/Language/Japanese/Utils.pm b/fml/lib/FML/Language/Japanese/Utils.pm index 4f53b2cd..3a3f86fb 100644 --- a/fml/lib/FML/Language/Japanese/Utils.pm +++ b/fml/lib/FML/Language/Japanese/Utils.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Utils.pm,v 1.7 2002/02/02 08:04:53 fukachan Exp $ +# $FML: Utils.pm,v 1.8 2002/04/08 12:44:25 fukachan Exp $ # package FML::Language::Japanese::Utils; @@ -65,6 +65,10 @@ sub _look_not_iso2022jp_string { my ($buf) = @_; + # trivial check; + return 0 unless defined $buf; + return 0 unless $buf; + # check 8 bit on if ($buf =~ /[\x80-\xFF]/){ return 1; |
