aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2020-01-13 13:53:04 -0800
committerGerald Combs <gerald@wireshark.org>2020-01-13 21:55:33 +0000
commit216c4b26735e80d8f15a77a6e86271fe527283ce (patch)
tree4598334deb91d69b2e4b139d7e6c344b09ebbf43 /tools
parent8b9f718deea6a52ef3997ad560b4e6bed01a0d54 (diff)
Gen-bugnote: Fix an encoding issue.
Change-Id: I0b193bc2dfa68de98d53b2443773d121801271e8 Reviewed-on: https://code.wireshark.org/review/35786 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen-bugnote5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gen-bugnote b/tools/gen-bugnote
index 7cce895962..0b0fc9be3f 100755
--- a/tools/gen-bugnote
+++ b/tools/gen-bugnote
@@ -14,7 +14,10 @@ bz_url_pfx="https://bugs.wireshark.org/bugzilla/show_bug.cgi"
bug_id="$1"
recode_cmd="cat"
-hash recode > /dev/null 2>&1 && recode_cmd="recode html..utf8"
+# Bugzilla gives us UTF-8 with HTML escapes. We want UTF-8. Recode assumes
+# that HTML is encoded as ISO-8859-1.
+# https://github.com/rrthomas/Recode/issues/1
+hash recode > /dev/null 2>&1 && recode_cmd="recode utf8..html | recode html..utf8"
case "$OSTYPE" in
darwin*)