search for: make_utf8_string

Displaying 2 results from an estimated 2 matches for "make_utf8_string".

2001 Jul 07
2
patch for title(?) segmentation fault
...I tracked it down to a mis-calculated buffer size for malloc. I've attached the patch that fixes it (for me:). The only problem I have with the rest of the code is figuring out how the terminating 0 (null, whatever:) gets into unicode, I can't see anywhere that sets it, so I'm suprised make_utf8_string doesn't cause any problems. Bill -- Leave others their otherness. -- Aratak <HR NOSHADE> <UL> <LI>text/plain attachment: oggenc.patch </UL> -------------- next part -------------- A non-text attachment was scrubbed... Name: oggenc.patch Type: application/octet-stre...
2001 Sep 30
3
UTF-8 stuff
...was invalid (but still converted, using '#') + * 3 : unknown encoding (but still converted, using '?') */ -typedef struct -{ - char* name; - int mapping[256]; -} charset_map; +void convert_set_charset(const char *charset); -charset_map *get_map(const char *encoding); -char *make_utf8_string(const unsigned short *unicode); -int simple_utf8_encode(const char *from, char **to, const char *encoding); -int utf8_encode(char *from, char **to, const char *encoding); +int convert_to_utf8(const char *from, char **to); +int convert_from_utf8(const char *from, char **to); diff -ru xiph.orig/vorbi...