Broken UTF8 profile names #4

Closed
opened 4 years ago by chytrex · 4 comments

Basic information

  • TDE version: 14.1.0
  • Distribution: Devuan ascii
  • Hardware: amd64

Description

When saving profile in TDEpowersave and using international characters (Tried "Výkon 2" as "Výkon" is default in czech localization) profile name got messed up on place where ý should appear. Profile works as expected, I can switch profiles etc.
...

Steps to reproduce

  1. Change settings
  2. Save new profile with international characters in the name of new profile

Screenshots

<!-- This is a comment. Please fill in the required fields below. The comments provide instructions on how to do so. Note: You do not need to remove comments. --> ## Basic information - TDE version: 14.1.0 <!-- such as R14.0.6 - see tde-config -v --> - Distribution: Devuan ascii<!-- such as Debian Stretch - see lsb_release -sd --> - Hardware: amd64<!-- amd64 / i386 / armhf / ... --> <!-- Use SL/* labels to set the severity level. Please do not set a milestone. --> ## Description When saving profile in TDEpowersave and using international characters (Tried "Výkon 2" as "Výkon" is default in czech localization) profile name got messed up on place where ý should appear. Profile works as expected, I can switch profiles etc. ... ## Steps to reproduce 1. Change settings 2. Save new profile with international characters in the name of new profile ## Screenshots <!-- If it seems useful, please provide provide one or more screenshots. -->
Poster

I investigated it further and suspicious line seems to be:

src/tdepowersave.cpp:214: scheme_menu = new TQPopupMenu(this, i18n("Set Active Scheme").ascii());

As I checked rc file and it seems to have set name correctly.

grep "Výkon" .trinity/share/config/tdepowersaverc
schemes=Performance,Powersave,Presentation,Acoustic,Výkon2
[Výkon2]

I investigated it further and suspicious line seems to be: src/tdepowersave.cpp:214: scheme_menu = new TQPopupMenu(this, i18n("Set Active Scheme").ascii()); As I checked rc file and it seems to have set name correctly. grep "Výkon" .trinity/share/config/tdepowersaverc schemes=Performance,Powersave,Presentation,Acoustic,Výkon2 [Výkon2]
Owner

I've found many cases where i18n().ascii() is used – all these cases appear to be wrong. For your case, the culprit is probably tdepowersave.cpp#L1715.

I've found many cases where `i18n().ascii()` is used – all these cases appear to be wrong. For your case, the culprit is probably [tdepowersave.cpp#L1715](src/branch/master/src/tdepowersave.cpp#L1715).
SlavekB added this to the R14.0.7 release milestone 4 years ago
SlavekB added the SL/trivial label 4 years ago
Collaborator

Aaah again this ascii thing. Thanks - someone will take care next.

Aaah again this ascii thing. Thanks - someone will take care next.
Owner

Problem solved by the above commits.

Since KPowerSave has the same problem, I solved it in KPowerSave as well.

Problem solved by the above commits. Since KPowerSave has the same problem, I solved it in KPowerSave as well.
SlavekB closed this issue 4 years ago
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdepowersave#4
Loading…
There is no content yet.