diff options
author | Christos Zoulas <christos@zoulas.com> | 2013-11-19 20:45:50 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2013-11-19 20:45:50 +0000 |
commit | c6c86b2ceb95da04a2429411c5ecc41004485285 (patch) | |
tree | 517f3972057deb6d24d67c30a7bb6a22e3ee2653 /src/encoding.c | |
parent | f208d23016cd829835a7ec0bca377d89489815fb (diff) | |
download | file-git-c6c86b2ceb95da04a2429411c5ecc41004485285.tar.gz |
PR/286: Default encoding is binary.
Diffstat (limited to 'src/encoding.c')
-rw-r--r-- | src/encoding.c | 5 |
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) { |