From 9c99f76f8c0441a277d5f23581b6d612f4808300 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 11 Feb 2008 00:19:29 +0000 Subject: [PATCH] Clarify UTF-8 BOM message (Reuben Thomas) Add HTML comment to token list in names.h --- ChangeLog | 6 ++++++ src/ascmagic.c | 4 ++-- src/names.h | 5 +++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f3421b56..d39aab48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ +2007-02-11 00:17 Reuben Thomas + + * Clarify UTF-8 BOM message (Reuben Thomas) + + * Add HTML comment to token list in names.h + 2007-02-04 15:50 Christos Zoulas * Debian fixes (Reuben Thomas) diff --git a/src/ascmagic.c b/src/ascmagic.c index 88093c68..f62be205 100644 --- a/src/ascmagic.c +++ b/src/ascmagic.c @@ -49,7 +49,7 @@ #include "names.h" #ifndef lint -FILE_RCSID("@(#)$File: ascmagic.c,v 1.57 2008/02/07 03:10:20 christos Exp $") +FILE_RCSID("@(#)$File: ascmagic.c,v 1.58 2008/02/08 13:31:19 christos Exp $") #endif /* lint */ typedef unsigned long unichar; @@ -121,7 +121,7 @@ file_ascmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes) code_mime = "us-ascii"; type = "text"; } else if (looks_utf8_with_BOM(buf, nbytes, ubuf, &ulen) > 0) { - code = "UTF-8 Unicode with BOM"; + code = "UTF-8 Unicode (with BOM)"; code_mime = "utf-8"; type = "text"; } else if (looks_utf8(buf, nbytes, ubuf, &ulen) > 1) { diff --git a/src/names.h b/src/names.h index 07dd770c..daf11681 100644 --- a/src/names.h +++ b/src/names.h @@ -32,7 +32,7 @@ * appear at fixed offsets into the file. Don't make HOWMANY * too high unless you have a very fast CPU. * - * $File: names.h,v 1.30 2008/01/26 18:45:16 christos Exp $ + * $File: names.h,v 1.31 2008/02/07 00:58:52 christos Exp $ */ /* @@ -167,6 +167,7 @@ static const struct names { {"