Bug 1336714 - Gnome Networkmanager Settings dialog doesn't show Unicode
Summary: Gnome Networkmanager Settings dialog doesn't show Unicode
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: control-center
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Control Center Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-17 09:45 UTC by Rolle
Modified: 2017-08-08 14:32 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 14:32:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Wrong Unicode in Gnome NetworkManager Settings (46.05 KB, image/png)
2016-05-17 09:45 UTC, Rolle
no flags Details
Correctly Unicode in Gnome Available WLan Hotspots (265.92 KB, image/png)
2016-05-17 09:46 UTC, Rolle
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 767205 0 None None None 2016-06-03 16:22:55 UTC

Description Rolle 2016-05-17 09:45:51 UTC
Created attachment 1158232 [details]
Wrong Unicode in Gnome NetworkManager Settings

Description of problem:
In Gnome the NetworkManager Settings dialog doesn't show Unicode characters in the currently available WLAN-Hotspots-Names (see attachment "Wrong Unicode in Gnome NetworkManager Settings"). But on the desktop the upper right main menu show the available WLAN-Hotspot-Names with Unicode characters correctly (see attachment "Correctly Unicode in Gnome Available WLan Hotspots").

Version-Release number of selected component (if applicable):
Fedora 24 Beta

How reproducible:
Always

Steps to Reproduce:
1. Boot Fedora 24 Beta workstation, Gnome (64 Bit) iso-image
2. go to a place where a WLAN hotspot with a special character is (in my case "WLAN-Rüpert")
3. select the upper right desktop menu and "Select a WLAN network" -> the "ü"-character is correctly shown
4. go to network settings and select the Wi-Fi subpage -> the listed WLANs doesn't show the "ü" correctly -> it is replaced with rectangle replacement-symbol

Actual results:
special characters (Unicode) doesn't show correctly in the Gnome NetworkManager settings dialog (especially the german "ü")

Expected results:
special characters (Unicode) should show correctly in the Gnome NetworkManager settings dialog (especially the german "ü")


Additional info:

Comment 1 Rolle 2016-05-17 09:46:20 UTC
Created attachment 1158233 [details]
Correctly Unicode in Gnome Available WLan Hotspots

Comment 2 Beniamino Galvani 2016-05-20 16:02:51 UTC
This seems to belong to the gnome-shell component, reassigning.

Comment 3 Florian Müllner 2016-05-20 16:16:02 UTC
(In reply to Beniamino Galvani from comment #2)
> This seems to belong to the gnome-shell component, reassigning.

Nope, gnome-shell provides the menu in the top bar that displays correctly. The other screenshot is from control-center's network panel.

Comment 4 Dan Williams 2016-06-02 17:54:34 UTC
Note that SSIDs are simply 32-byte arrays and have no inherent character encoding in them, and no way to specify that encoding.  So any non-ASCII characters that you see are a best-guess.

It looks like control-center's panels/network/net-device-wifi.c should be using 
nm_utils_ssid_to_utf8() in make_row() instead of nm_utils_escape_ssid() perhaps?

Comment 5 Dan Williams 2016-06-02 17:57:21 UTC
From libnm-utils docs:

----
nm_utils_escape_ssid ()

This function does a quick printable character conversion of the SSID, simply replacing embedded NULLs and non-printable characters with the hexadecimal representation of that character. Intended for debugging only, should not be used for display of SSIDs.

----
nm_utils_ssid_to_utf8 ()

Wi-Fi SSIDs are byte arrays, they are not strings. Thus, an SSID may contain embedded NULLs and other unprintable characters. Often it is useful to print the SSID out for debugging purposes, but that should be the only use of this function. Do not use this function for any persistent storage of the SSID, since the printable SSID returned from this function cannot be converted back into the real SSID of the access point.

This function does almost everything humanly possible to convert the input into a printable UTF-8 string, using roughly the following procedure:

1) if the input data is already UTF-8 safe, no conversion is performed
2) attempts to get the current system language from the LANG environment variable, and depending on the language, uses a table of alternative encodings to try. For example, if LANG=hu_HU, the table may first try the ISO-8859-2 encoding, and if that fails, try the Windows-1250 encoding. If all fallback encodings fail, replaces non-UTF-8 characters with '?'.
3) If the system language was unable to be determined, falls back to the ISO-8859-1 encoding, then to the Windows-1251 encoding.
4) If step 3 fails, replaces non-UTF-8 characters with '?'.

Again, this function should be used for debugging and display purposes only.

Comment 6 Dan Williams 2016-06-07 15:58:57 UTC
Bug fixed upstream, should show up in next update of gnome-control-center to 3.20.2.

Comment 7 Fedora End Of Life 2017-07-25 20:47:04 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-08-08 14:32:04 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.