X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2FCommods.pm;h=5d0ffe29fd46b8dd7b06802655b84d132ec9f100;hb=89de43f79c1a644669c3c00ba27157081ef29fcd;hp=42670342372f8dfbc20f24d063e74d796c041f4b;hpb=a203bc7861fa98862f6b887d07fe824d790e001b;p=ypp-sc-tools.db-test.git diff --git a/yarrg/Commods.pm b/yarrg/Commods.pm index 4267034..5d0ffe2 100644 --- a/yarrg/Commods.pm +++ b/yarrg/Commods.pm @@ -422,7 +422,7 @@ sub check_tsv_line ($$) { chomp($l) or &$bad_data('missing end-of-line'); - $l !~ m/\P{IsPrint}/ or &$bad_data('nonprinting char(s)'); + $l =~ m/[\t [:graph:]]/ or &$bad_data('nonprinting char(s) '.sprintf "%#x", ord $&); my @v= split /\t/, $l, -1; @v==6 or &$bad_data('wrong number of fields'); $v[1] =~ s/^\s+//; $v[1] =~ s/\s+$//; # ooo don't check :-(