1--- misc/hyphen-2.7.1/hyphen.c 2010-12-01 01:47:22.000000000 +0100 2+++ misc/build/hyphen-2.7.1/hyphen.c 2011-01-18 16:26:50.953125000 +0100 3@@ -291,13 +291,10 @@ 4 /* read in character set info */ 5 if (k == 0) { 6 for (i=0;i<MAX_NAME;i++) dict[k]->cset[i]= 0; 7- if (fgets(dict[k]->cset, sizeof(dict[k]->cset),f) != NULL) { 8- for (i=0;i<MAX_NAME;i++) 9- if ((dict[k]->cset[i] == '\r') || (dict[k]->cset[i] == '\n')) 10- dict[k]->cset[i] = 0; 11- } else { 12- dict[k]->cset[0] = 0; 13- } 14+ fgets(dict[k]->cset, sizeof(dict[k]->cset),f); 15+ for (i=0;i<MAX_NAME;i++) 16+ if ((dict[k]->cset[i] == '\r') || (dict[k]->cset[i] == '\n')) 17+ dict[k]->cset[i] = 0; 18 dict[k]->utf8 = (strcmp(dict[k]->cset, "UTF-8") == 0); 19 } else { 20 strcpy(dict[k]->cset, dict[0]->cset); 21