mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.2-033
This commit is contained in:
@@ -5550,9 +5550,10 @@ check_for_bom(p, size, lenp, flags)
|
||||
name = "ucs-4le"; /* FF FE 00 00 */
|
||||
len = 4;
|
||||
}
|
||||
else if (flags == FIO_ALL || flags == (FIO_UCS2 | FIO_ENDIAN_L))
|
||||
else if (flags == (FIO_UCS2 | FIO_ENDIAN_L))
|
||||
name = "ucs-2le"; /* FF FE */
|
||||
else if (flags == (FIO_UTF16 | FIO_ENDIAN_L))
|
||||
else if (flags == FIO_ALL || flags == (FIO_UTF16 | FIO_ENDIAN_L))
|
||||
/* utf-16le is preferred, it also works for ucs-2le text */
|
||||
name = "utf-16le"; /* FF FE */
|
||||
}
|
||||
else if (p[0] == 0xfe && p[1] == 0xff
|
||||
|
Reference in New Issue
Block a user