--- chardet.c.orig 2009-07-07 04:39:12.000000000 +0600 +++ chardet.c.orig 2009-07-15 14:44:22.567920030 +0600 @@ -66,11 +66,9 @@ if (dfa_validate_utf8(str, strlen(str))) return g_strdup(str); -# ifdef HAVE_UDET /* chardet encoding detector */ if ((out_str = chardet_to_utf8(str, strlen(str), NULL, NULL, NULL))) return out_str; -# endif #endif /* assume encoding associated with locale */ @@ -98,9 +96,9 @@ bytes_read = arg_bytes_read ? arg_bytes_read : &my_bytes_read; bytes_write = arg_bytes_write ? arg_bytes_write : &my_bytes_write; error = arg_error ? arg_error : NULL; - + g_return_val_if_fail(str != NULL, NULL); - + #ifdef USE_CHARDET if(cfg.chardet_detector) det = cfg.chardet_detector;