For client of libuim using non-unicode context, it is needed to fixup encoding or IM after the configuration_changed notification from IM toggle when new IM's character is not expressed in the previous IM's encoding. So could you add a API like uim_switch_im_with_client_encoding()? Attached file is the proposed patch, which also should fix SEGV with uim-el-agent. If the proposed API is too specific, maybe API like uim_switch_client_encoding() will be another candidate to fix the problem.
Created attachment 13064 [details] [review] Proposed patch for API addition
Hi Etsushi, thank you for the patch. I prefer to keep the enconding switching functionality orthogonal to the IM switching. How about this? void uim_set_client_encoding(uim_context uc, const char *encoding);
(In reply to comment #2) > I prefer to keep the enconding switching functionality orthogonal to the IM > switching. > > How about this? > > void uim_set_client_encoding(uim_context uc, const char *encoding); Sounds reasonable to me. Please go ahead with that.
The API has been added in r5069. Nosuke, please fix the uim.el problem with it.
> Nosuke, please fix the uim.el problem with it. Sorry about the late response. I've modified uim.el to use the new API.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.