NetworkManager/tui/newt
Dan Winship dd2e751b07 tui: fix Wi-Fi section of "nmtui connect" list in non-UTF-8 locales
In locales where the Wi-Fi signal-strength characters couldn't be
represented (eg, LANG=C), the entire Wi-Fi SSID + signal strength
string would fail to convert, causing the Wi-Fi section of the
connection list to show up as a series of blank lines.

Fix this by testing beforehand whether the characters can convert, and
falling back to plain ASCII if not. (And also, fix the similar code in
nmt-newt-section.c, which got broken when nmt_newt_locale_from_utf8()
was changed to never return NULL.)

Also, for paranoia, represent the signal-strength strings via \nnn
escapes rather than actual UTF-8 data, to guarantee that they get
compiled to the expected values even if the source files get
re-encoded.

https://bugzilla.gnome.org/show_bug.cgi?id=733007
2014-07-16 12:05:44 -04:00
..
Makefile.am build: more srcdir!=builddir fixes 2014-07-15 11:37:19 -04:00
nmt-newt-button-box.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-button-box.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-button.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-button.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-checkbox.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-checkbox.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-component.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-component.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-container.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-container.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-entry-numeric.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-entry-numeric.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-entry.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-entry.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-form.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-form.h tui: handle Esc correctly from toplevel windows 2014-02-17 15:30:04 -05:00
nmt-newt-grid.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-grid.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-hacks.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-hacks.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-label.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-label.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-listbox.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-listbox.h trivial: fix variable name in declaration 2014-02-27 13:39:20 -05:00
nmt-newt-popup.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-popup.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-section.c tui: fix Wi-Fi section of "nmtui connect" list in non-UTF-8 locales 2014-07-16 12:05:44 -04:00
nmt-newt-section.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-separator.c nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-separator.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-stack.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-stack.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-textbox.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-textbox.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-toggle-button.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-toggle-button.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00
nmt-newt-types.h build: improve our use of glib's version macros to catch more bugs 2014-02-13 11:24:37 -05:00
nmt-newt-utils.c tui: allow ^Z to suspend the app 2014-03-24 13:22:23 -04:00
nmt-newt-utils.h tui: add nmt_newt_text_width() 2014-01-16 09:19:07 -05:00
nmt-newt-widget.c all: remove remaining GParamSpec name/blurb strings 2014-06-19 17:45:03 -04:00
nmt-newt-widget.h tui: add nmt_newt_widget_get_realized(), realize forms properly 2014-03-24 13:16:12 -04:00
nmt-newt.h nmtui: initial import of nmtui 2013-12-13 16:00:51 +01:00