Ripped from Fedora --- man-1.5p/src/manpath.c.lang 2005-03-15 14:13:56.000000000 +0100 +++ man-1.5p/src/manpath.c 2005-03-15 14:16:09.544829976 +0100 @@ -255,7 +255,7 @@ static void add_to_mandirlist_x (char *dir, char *lang, int perrs) { add_to_list(dir, lang, perrs); - if (lang && strlen(lang) > 5 && lang[6] == '.') { + if (lang && strlen(lang) > 5 && lang[5] == '.') { char lang2[6]; /* e.g. zh_CN from zh_CN.GB2312 */ strncpy(lang2,lang,5);