m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Ignore invalid UTF-8 sequences

This commit is contained in:
Junegunn Choi
2013-11-15 21:49:00 +09:00
parent 43acf5c8a4
commit 6037e1e217
2 changed files with 27 additions and 4 deletions

View File

@@ -288,5 +288,10 @@ class TestFZF < MiniTest::Unit::TestCase
assert_equal NFD, nfd
end
end
def test_split
assert_equal ["a", "b", "c", "\xFF", "d", "e", "f"],
FZF::UConv.split("abc\xFFdef")
end
end