diff options
author | Eric Wong <e@80x24.org> | 2019-01-27 11:43:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-28 06:14:53 +0000 |
commit | 6025d9881c00a0d4b538f06ce157eed416045e10 (patch) | |
tree | 355b8321a8fb1811f6667fcc7b4ed70372ac3e92 /t | |
parent | 603d9ebc517fcf89ab6d2e7845b118aa6b8e9069 (diff) | |
download | public-inbox-6025d9881c00a0d4b538f06ce157eed416045e10.tar.gz |
We need to post-process "highlight" output to ensure it doesn't contain odd bytes which cause "wide character" warnings or require odd glyphs in source form.
Diffstat (limited to 't')
-rw-r--r-- | t/hval.t | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -43,5 +43,8 @@ is('foo-bar', PublicInbox::Hval::to_filename("foo bar\nanother line\n"), is('foo.bar', PublicInbox::Hval::to_filename("foo....bar"), 'to_filename squeezes -'); +my $s = "\0\x07\n"; +PublicInbox::Hval::src_escape($s); +is($s, "\\0\\a\n", 'src_escape works as intended'); done_testing(); |