/************************************************************************/
/* Reads charset file (as got from ftp.unicode.org) and returns array of*/
/* 256 short ints (malloced) mapping from charset t unicode */
-/************************************************************************/int * read_charset(const char *filename) {
+/************************************************************************/
uint16_t * read_charset(const char *filename) {
char *path;
FILE *f;
if (c<0||c>255||uc<0||(uc>0xFEFE&& uc!=0xFFFE)) {
fprintf(stderr,"Invalid charset file %s\n",path);
fclose(f);
+ free(new);
return NULL;
}
new[c]=uc;