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
..
arch.h Declare unified module interface and use it in modules 2016-07-08 05:09:09 +00:00
crc16.h misc fixes for Xorg and compile 2014-03-14 12:23:12 -07:00
defines.h common: small fix for 32 bit color 2014-06-10 16:58:25 -07:00
fifo.c common: no logic change, remove spaces 2014-08-27 11:15:31 -07:00
fifo.h common: no logic change, remove spaces 2014-08-27 11:15:31 -07:00
file_loc.h Stop redefining libdir, use moduledir for ${libdir}/xrdp 2016-02-12 23:52:46 -08:00
file.c common: updates for file.c 2016-02-09 18:29:52 -08:00
file.h common: no logic change, update comments 2014-03-01 23:26:40 -08:00
list16.c common: fix for list16_insert_item 2014-07-28 00:17:42 -07:00
list16.h reduce the memory needed for crc16 bitmap cache lists 2014-03-15 21:59:16 -07:00
list.c Fix more format warnings 2016-04-21 21:21:17 -07:00
list.h common: indent, not logic change 2014-07-25 21:33:05 -07:00
log.c Use g_new or g_new0 when C++ compiler would complain about implicit cast 2016-07-08 04:29:49 +00:00
log.h Use enum logLevels consistently for log levels 2016-07-08 04:29:57 +00:00
Makefile.am Include stdint.h, don't redefine MAX/MIN constants if already defined 2016-08-12 12:16:14 -07:00
os_calls.c Fix clipboard when text/filename contains non-ASCII characters 2016-08-18 13:27:55 +09:00
os_calls.h Merge pull request #390 from proski/june21 2016-08-05 14:38:41 -07:00
parse.h work on main loop changes 2015-07-05 23:14:46 -07:00
pixman-region16.c Include stdint.h, don't redefine MAX/MIN constants if already defined 2016-08-12 12:16:14 -07:00
pixman-region.c Pixman fixes 2016-08-11 22:18:26 -07:00
pixman-region.h add region intersect 2016-08-08 23:12:52 -07:00
rail.h common: no logic change, update comments 2014-03-01 23:26:40 -08:00
ssl_calls.c Use g_new or g_new0 when C++ compiler would complain about implicit cast 2016-07-08 04:29:49 +00:00
ssl_calls.h Use correct types for ssl and ctx fields in struct ssl_tls 2016-07-08 04:29:53 +00:00
thread_calls.c Add unnamed semaphore support on Mac OS 2016-04-23 00:26:46 -07:00
thread_calls.h common: no logic change, update comments 2014-03-01 23:26:40 -08:00
trans.c Use char* for TLS send and receive 2016-07-08 04:29:56 +00:00
trans.h Use char* for TLS send and receive 2016-07-08 04:29:56 +00:00
xrdp_client_info.h xrdp_wm: fix for multimon, draw login window and log window on primary 2016-05-17 20:11:49 -04:00
xrdp_constants.h Use uniform comments for GUIDs 2016-05-05 00:06:26 -07:00
xrdp_rail.h common: indent, not logic change 2014-07-25 22:24:40 -07:00