From 6dd8d650dfc26d113119c3566747d35855834146 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 3 Apr 2016 22:37:37 +0100 Subject: [PATCH] Commods (upload): report hex ord of nonprinting characters when rejecting --- yarrg/Commods.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarrg/Commods.pm b/yarrg/Commods.pm index 4267034..48caf79 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/\P{IsPrint}/ 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 :-( -- 2.30.2