On Sun, Aug 3, 2014 at 12:52 AM, David Woodhouse <dwmw2 at infradead.org> wrote: > So yes, I suppose exporting openconnect_open_utf8() and perhaps also > openconnect_fopen_utf8() under OPENCONNECT_PRIVATE is probably the way > to go. I was planning to take a look at what *else* might want to be > exported, now that charset handling ended up throughout libopenconnect > (it started *only* in main.c). Maybe that convert_str() function... > > Feel free to leave that to me though, if you prefer. I posted a few more updates to handle the UTF-8 filenames: The following changes since commit 24c3fb45d6ad824e97a0223065d9419641e3b8d1: Update GUI page (2014-07-31 23:17:42 +0100) are available in the git repository at: git://github.com/cernekee/openconnect token-20140803 for you to fetch changes up to 8338c3fdd86eb7da3c9310baa8bdc07b01636850: Use openconnect_[f]open_utf8() for xmlconfig, pidfile, config_file (2014-08-03 12:48:11 -0700) ---------------------------------------------------------------- Kevin Cernekee (11): xml: Make a generic function to read a file into a string xml: Trim whitespace from xmlconfig entries xml: Call openconnect_parse_url() on <HostAddress> entries main: Restore tty state if password prompt is aborted main: Allow reading --token-secret from a file auth: Rearrange stoken support code auth: Refactor stoken form handling Rename and export open_utf8(), fopen_utf8() ssl: Allow openconnect_open_utf8() to be used with O_CREAT ssl: Support more read/write modes in openconnect_fopen_utf8() Use openconnect_[f]open_utf8() for xmlconfig, pidfile, config_file auth.c | 241 ++++++++++++++++++++++++++++++++++-------------- gnutls.c | 2 +- libopenconnect.map.in | 2 + main.c | 28 ++++-- openconnect-internal.h | 10 +- openconnect.8.in | 13 ++- openssl.c | 8 +- ssl.c | 37 +++++--- xml.c | 109 ++++++++++++++-------- 9 files changed, 310 insertions(+), 140 deletions(-)