Files
xrdp/common
Koichiro IWAO ceb4b7b2a4 Fix clipboard when text/filename contains non-ASCII characters
broken by #314. This is compatible with the fix introduced in #314.

To use non-ASCII text/filename in clipboard, chansrv needs to be run
with LC_CTYPE=*.UTF-8 because the behaviour of mbstowcs(3) function
called in chansrv depends on LC_CTYPE[1].  However #314 made
LC_CTYPE=C in chansrv context.  Even if LANG and LC_* are set in
.bashrc, /etc/profile, /etc/locale.conf or something like that,
it doesn't affect in chansrv context because chansrv doesn't source
any of them unlike sesman.

So do not set LC_CTYPE to blank or "C" in g_init() in order to get
g_mbstowcs and g_wcstombs to work properly with non-ASCII UTF-8
characters in any context.

Setting LC_CTYPE to *.UTF-8 doesn't obstruct applying system
language in RHEL [2].

[1] Linux man page says:
      The behavior of mbstowcs() depends on the LC_CTYPE category of
      the current locale.

[2] https://bugzilla.redhat.com/show_bug.cgi?id=1290820
2016-08-18 13:27:55 +09:00
..
2014-03-14 12:23:12 -07:00
2014-06-10 16:58:25 -07:00
2014-08-27 11:15:31 -07:00
2014-08-27 11:15:31 -07:00
2016-02-09 18:29:52 -08:00
2014-07-28 00:17:42 -07:00
2016-04-21 21:21:17 -07:00
2014-07-25 21:33:05 -07:00
2015-07-05 23:14:46 -07:00
2016-08-11 22:18:26 -07:00
2016-08-08 23:12:52 -07:00
2016-07-08 04:29:56 +00:00
2016-07-08 04:29:56 +00:00
2014-07-25 22:24:40 -07:00