summaryrefslogtreecommitdiffstats
path: root/contrib/file/src/encoding.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-12-11 06:52:10 +0000
committerdelphij <delphij@FreeBSD.org>2014-12-11 06:52:10 +0000
commit504cc95e05d4edf7e1615ae450c370f6cc7a96ae (patch)
treeaa6fb81cc2801f9f2db10c5217ec3c495278f249 /contrib/file/src/encoding.c
parent6eef5a7d4dabee1d90f7bb9993b3f7f438e5aba5 (diff)
parent2e5be0fdd11aef0d2cb0d88c71946b953019f313 (diff)
downloadFreeBSD-src-504cc95e05d4edf7e1615ae450c370f6cc7a96ae.zip
FreeBSD-src-504cc95e05d4edf7e1615ae450c370f6cc7a96ae.tar.gz
MFV r275696: file 5.21.
MFC after: 2 weeks
Diffstat (limited to 'contrib/file/src/encoding.c')
-rw-r--r--contrib/file/src/encoding.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/file/src/encoding.c b/contrib/file/src/encoding.c
index b75e0cc..c1b23cc 100644
--- a/contrib/file/src/encoding.c
+++ b/contrib/file/src/encoding.c
@@ -35,7 +35,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: encoding.c,v 1.9 2013/11/19 20:45:50 christos Exp $")
+FILE_RCSID("@(#)$File: encoding.c,v 1.10 2014/09/11 12:08:52 christos Exp $")
#endif /* lint */
#include "magic.h"
@@ -97,7 +97,6 @@ file_encoding(struct magic_set *ms, const unsigned char *buf, size_t nbytes, uni
*code_mime = "utf-8";
} else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) {
DPRINTF(("utf8 %" SIZE_T_FORMAT "u\n", *ulen));
- *code = "UTF-8 Unicode (with BOM)";
*code = "UTF-8 Unicode";
*code_mime = "utf-8";
} else if ((ucs_type = looks_ucs16(buf, nbytes, *ubuf, ulen)) != 0) {
OpenPOWER on IntegriCloud