Skip to contentSkip to conversation

checkpatch: Make utf-8 test --strict

PATCH New Joe Perches 1 participant 1 message Jul 1, 2011 5 messages not in the archive Checkpatch

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1309410138.1726.21.camel@Joe-Laptop

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1309491411.7277.23.camel@Joe-Laptop

A message that is not in the archive (sent off-list or not yet received): [email protected]

Joe Perches

author maintainer
#5 lore raw

PATCH 1/1 checkpatch: Make utf-8 test --strict

Some patches are sent in using ISO-8859 or even Windows codepage 1252.

Make checkpatch accept these by default and only emit the "Invalid UTF-8" message when using --strict.

---

 scripts/checkpatch.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/checkpatch.pl +1 -1
index b0aa2c6..313ee88 100755
@@ -1408,7 +1408,7 @@ sub process {
 			my $ptr = substr($blank, 0, length($utf8_prefix)) . "^";
 			my $hereptr = "$hereline$ptr\n";
 
-			ERROR("Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr);
+			CHK("Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr);
 		}
 
 # ignore non-hunk lines and lines being removed