* [PATCH] t/hl_mod: workaround w3m not handling '
@ 2019-04-19 8:13 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2019-04-19 8:13 UTC (permalink / raw)
To: meta
This fixes a test failure on my Debian buster system.
Bug report filed for w3m to handle "'":
https://bugs.debian.org/927409
and for "highlight" to favor "'" in case other browsers fail:
https://bugs.debian.org/927410
---
t/hl_mod.t | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/t/hl_mod.t b/t/hl_mod.t
index 84a4b57..fc7b712 100644
--- a/t/hl_mod.t
+++ b/t/hl_mod.t
@@ -30,6 +30,10 @@ my $orig = $str;
require File::Temp;
my $cmd = [ qw(w3m -T text/html -dump -config /dev/null) ];
my ($out, $err) = ('', '');
+
+ # workaround https://bugs.debian.org/927409
+ $$ref =~ s/'/'/sg;
+
IPC::Run::run($cmd, \('<pre>'.$$ref.'</pre>'), \$out, \$err);
# expand tabs and normalize whitespace,
# w3m doesn't preserve tabs
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-19 8:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-19 8:13 [PATCH] t/hl_mod: workaround w3m not handling ' Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).