After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 570855 - Program crashes on start.
Program crashes on start.
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
0.4.2
Other All
: Normal critical
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2009-02-07 10:54 UTC by Dmitriy Motitskiy
Modified: 2009-02-09 23:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Program's dump (223.23 KB, text/plain)
2009-02-07 10:55 UTC, Dmitriy Motitskiy
  Details
Proposed patch (1.40 KB, patch)
2009-02-09 05:51 UTC, Dmitriy Motitskiy
none Details | Review

Description Dmitriy Motitskiy 2009-02-07 10:54:05 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:
Comment 1 Dmitriy Motitskiy 2009-02-07 10:55:40 UTC
Created attachment 128147 [details]
Program's dump
Comment 2 Dmitriy Motitskiy 2009-02-09 05:51:16 UTC
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.
Comment 3 Curtis Gedak 2009-02-09 18:14:16 UTC
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).
Comment 4 Curtis Gedak 2009-02-09 18:19:42 UTC
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?
Comment 5 Dmitriy Motitskiy 2009-02-09 23:40:32 UTC
Hi Curtis,

I will communicate with GNOME Translation Team to apply my changes to the application's Russian translation.
Comment 6 Curtis Gedak 2009-02-09 23:45:15 UTC
That would be great.

And thanks again for finding and proposing a fix for this bug.