Crash when adding new style name containing accents

• Sep 26, 2014 - 06:36
Type
Functional
Severity
S4 - Minor
Status
closed
Project

On Xubuntu 14.10 (MuseScore commit 2a67602 with interface in French), create a score, go to Style | Text... and click on the button New. Add Texte accentué in the field Text style name and click on OK.

Result: MuseScore crashes with this output in the terminal:

TextStyle <Titre> not found
Abandon (core dumped)

It seems that this bug only occurs with interface in French, not in English. However, even if MuseScore doesn't crash with interface in English, there's still a bug: the style name won't be displayed correctly (in the Edit Text Styles dialog, the Inspector dialog, etc.):

Texte accentu�

Maybe MuseScore doesn't crash in English because of an encoding problem, that is the accent is not saved as it.


Comments

If I change the interface from English to French, and try to add another new style, it crashes because of the style previously added in English:

TextStyle <Texte accentu�> not found
Abandon (core dumped)
Title Crash when adding new style name containing accents Accents in style name not handled correctly
Status (old) active duplicate

I realize that the crash is not related to accents. In fact, the first new style added will crash MuseScore with the interface in French. It's a duplicate of #34506: Crash when adding new text style

I missed to see the duplicate because with the bug #34506, crash happens with the second style added (interface in English), not the first (as with the interface in French).

The bug with accents displayed badly is still valid. I'll create a new report.