Bug 3204 - SIGSEGV in grip's editor at the very first cyrillic character
Summary: SIGSEGV in grip's editor at the very first cyrillic character
Alias: None
Product: Sisyphus
Classification: Development
Component: grip (show other bugs)
Version: unstable
Hardware: all Linux
: P1 major
Assignee: Michael Shigorin
QA Contact: qa-sisyphus
Depends on:
Reported: 2003-10-27 10:17 MSK by Michael Shigorin
Modified: 2006-01-03 00:56 MSK (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2003-10-27 10:17:28 MSK
When trying to edit any disc data, grip-3.1.2 would crash just as you try to
enter a cyrillic character (XKB enabled).  It doesn't depend on locale
completeness (I tend to use partially C locale but "LC_ALL=ru_RU.KOI8-R grip"
yields the same result) either.  It doesn't also depend on whether disc is
already "known" or not.
Comment 2 Dmitry Vukolov 2003-10-27 19:43:23 MSK
Also can't reproduce it here. Maybe a backtrace will help 
Comment 3 Michael Shigorin 2003-10-28 10:47:56 MSK
Caught it.  Diff between ~/.grip that would do segfault and the one that wouldn't:

-discdb_encoding ANSI_X3.4-1968
-fs_encoding ANSI_X3.4-1968
-id3_encoding ANSI_X3.4-1968
+discdb_encoding KOI8-U
+fs_encoding KOI8-U
+id3_encoding KOI8-U

It seems that at some stage I've got misconfigured default values for these (no
I didn't enter them, just didn't touch at all on the system where grip would crash).

Seems *now* the defaults are fixed, but it would be reasonable to do some kind
of sanity check regarding whether the conversion is successful.
Comment 4 Michael Shigorin 2004-03-25 19:40:18 MSK
fixed, thanks to Sergey Pinaev (dfo@)