From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 404A620248 for ; Fri, 19 Apr 2019 08:13:23 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/hl_mod: workaround w3m not handling ' Date: Fri, 19 Apr 2019 08:13:23 +0000 Message-Id: <20190419081323.24683-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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, \('
'.$$ref.'
'), \$out, \$err); # expand tabs and normalize whitespace, # w3m doesn't preserve tabs -- EW