Egmont Koblinger wrote: > Currently it returns a pointer to a memory segment that is (I don't know) > most likely either uninitialized or contains terminating null elements, > since i is guaranteed to equal to NUM_LANG_CHAR_SET, furthermore country has > no real integer meaning, it's basically just a boolean (either -1 or not) > and the first "if (country == -1)" testing makes no sense either. > > I guess it was rather intended to return the first charset for which the > language at least partially (same lang but different country) matches, which > is remembered in country. That is suspicious. Does it fix your problem if you return &fcLangCharSets[country].charset? pat _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig