From 1b94ec589e2d1c3f84998c34fd8b64292654d6dc Mon Sep 17 00:00:00 2001 From: Mike Ryan Date: Wed, 10 Aug 2016 07:52:57 -0700 Subject: [PATCH] tools: escape double quotes in company names Double quotes in company names are properly escaped so that they are valid C string literals. --- tools/parse_companies.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/parse_companies.pl b/tools/parse_companies.pl index f755390b5..99d3f31d3 100755 --- a/tools/parse_companies.pl +++ b/tools/parse_companies.pl @@ -51,6 +51,7 @@ while (<>) { my $name = uri_decode($1); $name =~ s/^\s+//g; # kill leading $name =~ s/\s+$//g; # and trailing space + $name =~ s/"/\\"/g; # escape double quotes my $id = hex($identifier); if ($id != 65535) { print "\tcase $id:\n"; -- 2.47.3