summaryrefslogtreecommitdiff
path: root/src/encoding.c
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2013-11-19 20:45:50 +0000
committerChristos Zoulas <christos@zoulas.com>2013-11-19 20:45:50 +0000
commitc6c86b2ceb95da04a2429411c5ecc41004485285 (patch)
tree517f3972057deb6d24d67c30a7bb6a22e3ee2653 /src/encoding.c
parentf208d23016cd829835a7ec0bca377d89489815fb (diff)
downloadfile-git-c6c86b2ceb95da04a2429411c5ecc41004485285.tar.gz
PR/286: Default encoding is binary.
Diffstat (limited to 'src/encoding.c')
-rw-r--r--src/encoding.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/encoding.c b/src/encoding.c
index 77775ba8..f8cd80ac 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.7 2012/01/24 19:02:02 christos Exp $")
+FILE_RCSID("@(#)$File: encoding.c,v 1.8 2013/09/17 15:51:22 christos Exp $")
#endif /* lint */
#include "magic.h"
@@ -73,7 +73,8 @@ file_encoding(struct magic_set *ms, const unsigned char *buf, size_t nbytes, uni
*type = "text";
*ulen = 0;
- *code = *code_mime = "unknown";
+ *code = "unknown";
+ *code_mime = "binary";
mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) {