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
Change settings
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. -->
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'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
Basic information
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
Screenshots
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'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.Aaah again this ascii thing. Thanks - someone will take care next.
Problem solved by the above commits.
Since KPowerSave has the same problem, I solved it in KPowerSave as well.