X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fnorm_charmap.c;h=ca3a2c49246d1290fbbaf5d7daeb0b9111022e4e;hb=f3db6244253b548f4196ea5cf41f4bc8d400d0c3;hp=8ec544f2377ab3c902a8bcce04ac7217dca7a930;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1;p=mmh diff --git a/sbr/norm_charmap.c b/sbr/norm_charmap.c index 8ec544f..ca3a2c4 100644 --- a/sbr/norm_charmap.c +++ b/sbr/norm_charmap.c @@ -1,28 +1,28 @@ /* - * The Single Unix Specification function nl_langinfo(CODESET) - * returns the name of the encoding used by the currently selected - * locale: - * - * http://www.opengroup.org/onlinepubs/7908799/xsh/langinfo.h.html - * - * Unfortunately the encoding names are not yet standardized. - * This function knows about the encoding names used on many - * different systems and converts them where possible into - * the corresponding MIME charset name registered in - * - * http://www.iana.org/assignments/character-sets - * - * Please extend it as needed and suggest improvements to the author. - * - * Markus.Kuhn@cl.cam.ac.uk -- 2002-03-11 - * Permission to use, copy, modify, and distribute this software - * for any purpose and without fee is hereby granted. The author - * disclaims all warranties with regard to this software. - * - * Latest version: - * - * http://www.cl.cam.ac.uk/~mgk25/ucs/norm_charmap.c - */ +** The Single Unix Specification function nl_langinfo(CODESET) +** returns the name of the encoding used by the currently selected +** locale: +** +** http://www.opengroup.org/onlinepubs/7908799/xsh/langinfo.h.html +** +** Unfortunately the encoding names are not yet standardized. +** This function knows about the encoding names used on many +** different systems and converts them where possible into +** the corresponding MIME charset name registered in +** +** http://www.iana.org/assignments/character-sets +** +** Please extend it as needed and suggest improvements to the author. +** +** Markus.Kuhn@cl.cam.ac.uk -- 2002-03-11 +** Permission to use, copy, modify, and distribute this software +** for any purpose and without fee is hereby granted. The author +** disclaims all warranties with regard to this software. +** +** Latest version: +** +** http://www.cl.cam.ac.uk/~mgk25/ucs/norm_charmap.c +*/ #include @@ -38,9 +38,11 @@ norm_charmap(char *name) if (!name) return name; - /* Many need no remapping, but they are listed here so you - * can see what output to expect, and modify for your needs - * as necessary. */ + /* + ** Many need no remapping, but they are listed here so you + ** can see what output to expect, and modify for your needs + ** as necessary. + */ if (!strcmp(name, "UTF-8")) return "UTF-8"; if (!strcmp(name, "EUC-JP")) @@ -106,9 +108,11 @@ norm_charmap(char *name) if (!strcmp(name, "Big5HKSCS") || !strcmp(name, "BIG5HKSCS")) return "Big5HKSCS"; - /* I don't know of any implementation of nl_langinfo(CODESET) out - * there that returns anything else (and I'm not even certain all of - * the above occur in the wild), but just in case, as a fallback, - * return the unmodified name. */ + /* + ** I don't know of any implementation of nl_langinfo(CODESET) out + ** there that returns anything else (and I'm not even certain all of + ** the above occur in the wild), but just in case, as a fallback, + ** return the unmodified name. + */ return name; }