search for: stringprep_utf8_nfkc_normalize

Displaying 1 result from an estimated 1 matches for "stringprep_utf8_nfkc_normalize".

2005 Oct 27
0
Converting OS X UTF-8 NFD to UTF-8 NFC
...*f_name_to(struct file_struct *f, char *fbuf) { + char *norm; + if (!f || !f->basename) return NULL; @@ -1760,6 +1763,11 @@ strcpy(fbuf + len + 1, f->basename); } else strcpy(fbuf, f->basename); + + norm = stringprep_utf8_nfkc_normalize(fbuf, -1); + strcpy(fbuf, norm); + free(norm); + return fbuf; } ---------------------------- -- Josef Drexler | http://jdrexler.com/home/ ---------------------------------+--------------------------------------- Please help Conserve Gravity |...