diff options
author | Christos Zoulas <christos@zoulas.com> | 2022-02-19 22:48:58 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2022-02-19 22:48:58 +0000 |
commit | 4185e9c5c90706c20dcad5409f0da9b3ba121a5e (patch) | |
tree | 177009da72176f443937d7d4ed3e46aa6bb4269e /src/encoding.c | |
parent | 394df3ed46b7d33546225331790b95f8693b995f (diff) | |
download | file-git-4185e9c5c90706c20dcad5409f0da9b3ba121a5e.tar.gz |
PR/319: jmp3r: UTF-16 does not require a BOM
Diffstat (limited to 'src/encoding.c')
-rw-r--r-- | src/encoding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding.c b/src/encoding.c index 3647a481..36ad4c83 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: encoding.c,v 1.32 2021/04/27 19:37:14 christos Exp $") +FILE_RCSID("@(#)$File: encoding.c,v 1.33 2022/02/19 22:48:58 christos Exp $") #endif /* lint */ #include "magic.h" @@ -473,7 +473,7 @@ looks_ucs16(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf, else if (bf[0] == 0xfe && bf[1] == 0xff) bigend = 1; else - return 0; + bigend = 1; *ulen = 0; |