GNOME Bugzilla – Bug 570855
Program crashes on start.
Last modified: 2009-02-09 23:45:15 UTC
Steps to reproduce: 1. Start application. Program will be terminated with message: terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::replace I have "ru_RU.UTF-8" locale when this bug happens. When I change $LANG to "C", program launches and works well with English interface. Stack trace: Other information:
Created attachment 128147 [details] Program's dump
Created attachment 128273 [details] [review] Proposed patch I think this patch will solve the problem. I also made a little change to Russian translation. It is very simple. Don't hesitate to contact me (via email) if you have some questions.
Hi Dmitriy, Thank you for logging this problem, identifying the cause, and posting a proposed patch. This makes it very easy to review, test, and apply a fix. The problem was caused by me in version 0.4.0. My bad ;-( I must remember to ensure that a substring is found before calling the replace method. A fix for this problem has been committed to the Gnome SVN repository for inclusion in the next release of GParted (0.4.3).
Changes to the language translations are handled by the GNOME Translation Team. http://live.gnome.org/TranslationProject/ Would you be able to work with the Gnome translation teams to have your change included?
Hi Curtis, I will communicate with GNOME Translation Team to apply my changes to the application's Russian translation.
That would be great. And thanks again for finding and proposing a fix for this bug.