winit/src/platform_impl/linux/x11/ime
Julien Sanchez a1b65f7080 Ignore locale if unsupported by X11 backend (#1445)
This restores default portable 'C' locale when target locale is unsupported
by X11 backend (Xlib).

When target locale is unsupported by X11, some locale-dependent Xlib
functions like `XSetLocaleModifiers` fail or have no effect triggering
later failures and panics.

When target locale is not valid, `setLocale` should normally leave the
locale unchanged (`setLocale` returns 'C'). However, in some situations,
locale is accepted by `setLocale` (`setLocale` returns the new locale)
but the accepted locale is unsupported by Xlib (`XSupportsLocale` returns
`false`).

Fix #636
2020-02-09 22:37:06 -07:00
..
callbacks.rs Format everything and add rustfmt to travis (#951) 2019-06-21 11:33:15 -04:00
context.rs Format everything and add rustfmt to travis (#951) 2019-06-21 11:33:15 -04:00
inner.rs Format everything and add rustfmt to travis (#951) 2019-06-21 11:33:15 -04:00
input_method.rs Ignore locale if unsupported by X11 backend (#1445) 2020-02-09 22:37:06 -07:00
mod.rs Format everything and add rustfmt to travis (#951) 2019-06-21 11:33:15 -04:00