GNOME Bugzilla – Bug 84995
default charset
Last modified: 2006-06-18 05:15:35 UTC
why is default encoding hardcoded? it would better to have it settable through preferrences. I'm currently using this patch to change hardcoded charset: --- group.c.orig Sun May 26 01:15:43 2002 +++ group.c Wed Jun 12 11:39:53 2002 @@ -254,7 +254,7 @@ const char* group_get_default_charset (const Group * group) { - const char * retval = "ISO-8859-1"; + const char * retval = "ISO-8859-2"; g_return_val_if_fail (group_is_valid(group), retval);
This would break the string freeze, but will be one of the first fixes in CVS after 0.12.0 comes out.
Having looked at this, it seems making this a preference seems a non-trivial task. (note for charles: this means libpanbase.a(group.c) would be tied to the prefs.c module) What I've done so far is to make the default charset depend on the user's locale. So a user running with Czech locale would see a default charset of ISO-8859-2. Thoughts ?
looks good, remember to check it into cvs head too. :)
Implemented for 0.12.1 and merged to HEAD.