From 67f6ceecd314fadd96e3dbc5fc543dd0528b050a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 31 Jul 2020 12:55:40 +0200 Subject: [PATCH] Bug 25811: (follow-up) Debug - Paste the source of the page Wide character in syswrite at /usr/share/perl5/File/Slurp.pm line 506. Signed-off-by: Jonathan Druart --- t/lib/Selenium.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm index 8e74976fc8..4644d114f0 100644 --- a/t/lib/Selenium.pm +++ b/t/lib/Selenium.pm @@ -30,7 +30,7 @@ sub capture { my ( $class, $driver ) = @_; $driver->get_page_source; - write_file('/tmp/page_source_from_selenium', $driver->get_page_source); + write_file('/tmp/page_source_from_selenium', {binmode => ':utf8'}, $driver->get_page_source ); my $gdf3_url = qx(cat /tmp/page_source_from_selenium | curl --data-binary \@- https://gdf3.com); print STDERR "\nPage source pasted at $gdf3_url"; -- 2.39.5