GNOME Bugzilla – Bug 763039
[review] handle non UTF-8 characters during import and in filenames [th/utf8safe-bgo763039]
Last modified: 2016-03-08 09:24:07 UTC
Based on https://mail.gnome.org/archives/networkmanager-list/2016-March/msg00011.html, here a patches to handle non-UTF-8 encodings for Openvpn configuration differently. Please review.
with respect to the properties dialog, utf8safe properties are not yet properly handled. Note that this only matters if a property actually contains '\\' or non-UTF-8 chars. For NM_OPENVPN_KEY_DEV, I think there is nothing to do. From the UI point of view, the escaped string is displayed as UTF-8 back and forth. It's only a problem, if the user enters one signle '\\', without being aware that he does escaping. For the filenames it would involve extra work, because we must check that we properly escape/unescape as we interact with the filechooser.
latest branch looks OK to me.
merged: https://git.gnome.org/browse/network-manager-openvpn/commit/?id=a5aa60041018cff200a8aded7afd437e5ec21a79