blob: f7fe1de4b1ff75baa8f76a1fc31f513a914404a4 [file] [log] [blame]
--- unicodehack.c.orig 2006-01-31 20:18:16.000000000 -0500
+++ unicodehack.c 2006-01-31 20:18:39.000000000 -0500
@@ -26,7 +26,7 @@
return -1;
}
- if ( (retval = iconv(cd, (const char **)&src, &srcln, &dst, &dstln)) == -1) {
+ if ( (retval = iconv(cd, (char **)&src, &srcln, &dst, &dstln)) == -1) {
// XXX ignore error message "iconv: Illiegal byte sequence"
// with GNU libiconv. No effect for output in now.
//perror("iconv");
@@ -43,7 +43,7 @@
/**
* @return less then zero: error.
*/
-int unicode2locale(char *dst, size_t dstln, const char *src, size_t srcln) {
+int unicode2locale(char *dst, size_t dstln, char *src, size_t srcln) {
iconv_t cd;
int retval;
--- unicodehack.h.orig 2006-01-31 20:19:05.000000000 -0500
+++ unicodehack.h 2006-01-31 20:19:26.000000000 -0500
@@ -4,6 +4,6 @@
#define IFPLINE_UNICODEHACK_H
extern int locale2unicode(char*, size_t, const char*, size_t);
-extern int unicode2locale(char*, size_t, const char*, size_t);
+extern int unicode2locale(char*, size_t, char*, size_t);
#endif // IFPLINE_UNICODEHACK_H