diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-12-29 22:45:34 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-12-29 22:45:34 +0000 |
commit | 86e01085a10b88aa19f9634eaf265656ebb4c945 (patch) | |
tree | 3d122b0b2e5a662af21286926f8cde0ba86c2cc6 /src | |
parent | 371baa928db4308da70594064cfca172a63e8dff (diff) |
updated for version 7.0178
Diffstat (limited to 'src')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index c21035ce12..e05fb54db8 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1491,7 +1491,7 @@ retry: else { u8c = utf_ptr2char(src); - if (u8c > 0xffff) + if (u8c > 0xffff || (*src >= 0x80 && bytelen == 1)) found_bad = TRUE; ucs2buf[0] = u8c; ucs2len = 1; |