aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/fileio_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-07-26 11:18:19 +0200
committerGitHub <noreply@github.com>2019-07-26 11:18:19 +0200
commitb42bfa599b3fc15d0b613cfcff8c742e57854cf3 (patch)
tree14de0a1eb8da856c567256a9b8acf6e5d0005c4f /test/functional/core/fileio_spec.lua
parent8a9c9a996322a1d111c55efb156710add68da358 (diff)
parent2731080212fad1430becae0cb56fe33238e7e24a (diff)
downloadrneovim-b42bfa599b3fc15d0b613cfcff8c742e57854cf3.tar.gz
rneovim-b42bfa599b3fc15d0b613cfcff8c742e57854cf3.tar.bz2
rneovim-b42bfa599b3fc15d0b613cfcff8c742e57854cf3.zip
Merge #10589 'os/fs: introduce os_fopen()'
Diffstat (limited to 'test/functional/core/fileio_spec.lua')
-rw-r--r--test/functional/core/fileio_spec.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua
index c74eb3bb02..e6bce85b8a 100644
--- a/test/functional/core/fileio_spec.lua
+++ b/test/functional/core/fileio_spec.lua
@@ -22,6 +22,7 @@ describe('fileio', function()
os.remove('Xtest_startup_file1')
os.remove('Xtest_startup_file1~')
os.remove('Xtest_startup_file2')
+ os.remove('Xtest_тест.md')
rmdir('Xtest_startup_swapdir')
end)
@@ -85,7 +86,22 @@ describe('fileio', function()
eq('foobar', foobar_contents);
eq('foo', bar_contents);
+ end)
+ it('readfile() on multibyte filename #10586', function()
+ clear()
+ local text = {
+ 'line1',
+ ' ...line2... ',
+ '',
+ 'line3!',
+ 'тест yay тест.',
+ '',
+ }
+ local fname = 'Xtest_тест.md'
+ funcs.writefile(text, fname, 's')
+ table.insert(text, '')
+ eq(text, funcs.readfile(fname, 'b'))
end)
end)