In source/client/client.c, remember_query_host() uses strchr() to truncate query_host at '/' or '\\'. Because query_host possibly has multibyte character(s), you must use strchr_m() instead of strchr().
Created attachment 404 [details] Patch to fix this bug Because push_ucs2() called from strchr_m() calls convert_string(CH_UNIX, CH_UCS2, ...), strchr_m() must be called after lp_load() (i.e. unix charset was configured).
Created attachment 426 [details] 2nd proposed patch
Looks ok to me. Applied. Thanks.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.