[Geany-devel] Geany problems with unknown encodings names
elextr at xxxxx
Mon Oct 24 14:12:23 UTC 2011
Dear Encoding specialist (or Colomban by default :)
The thread  has exposed a problem with the way Geany handles
encodings that it gets from the extraction regexes and from the
The reference thread shows that Geany gets an encoding CP1252 from the
locale, this is fine for reading the file since iconv and therefore
g_convert recognises it and loads it fine.
Places where Geany just uses the string such as the status bar also work fine.
But Geany does not recognise CP1252 (Geany only knows WINDOWS-1252) so
places that use the encoding index default to UTF-8.
So Geany saves the encoding in the session file as UTF-8 which is
incorrect. The document->set encoding menu also defaults to UTF-8
because it uses the index to select the option.
Geany could fix the sessions by just saving the encoding name not an
index, but the menu is a problem and may need an "unknown (no change)"
Or Geany could refuse to use encodings that it doesn't recognise, but
that is somewhat restrictive :(
And I don't know what other parts of Geany may also be affected.
Any other ideas?
More information about the Devel