From c6c86b2ceb95da04a2429411c5ecc41004485285 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 19 Nov 2013 20:45:50 +0000 Subject: [PATCH] PR/286: Default encoding is binary. --- src/encoding.c | 5 +++-- 1 file 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) { -- 2.40.0