From: Ian Jackson Date: Sun, 3 Apr 2016 21:37:56 +0000 (+0100) Subject: Commods (upload): Tolerate tabs (which are nowadays not printing it seems?!) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=ae2758e8121ca99fc8055e794b4f891e4b0e267a Commods (upload): Tolerate tabs (which are nowadays not printing it seems?!) --- diff --git a/yarrg/Commods.pm b/yarrg/Commods.pm index 48caf79..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) '.sprintf "%#x", ord $&); + $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 :-(