Re: [hackers] [tabbed][PATCH] Use utf8 for window name
In Wed, 10 Jun 2020 22:09:01 +0200
Hiltjo Posthuma <hiltjo_AT_codemadness.org> wrote:
> On Thu, Jun 04, 2020 at 02:13:49PM +0500, Nikita Zlobin wrote:
> > At least some desktop tools (non-mainstream) are in trouble with
> > tabbed window name. At the moment of try I have only tint2 and
> > rofi. First just showes intitled, but second - "Invalid encoding".
> > Though xfwm4 has no problem with compound text names. ---
> > tabbed.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/tabbed.c b/tabbed.c
> > index af207c8..4ee4277 100644
> > --- a/tabbed.c
> > +++ b/tabbed.c
> > _AT_@ -1296,8 +1296,8 @@ xsettitle(Window w, const char *str)
> > {
> > XTextProperty xtp;
> >
> > - if (XmbTextListToTextProperty(dpy, (char **)&str, 1,
> > - XCompoundTextStyle, &xtp) == Success) {
> > + if (Xutf8TextListToTextProperty(dpy, (char **)&str, 1,
> > + XUTF8StringStyle, &xtp) == Success) {
> > XSetTextProperty(dpy, w, &xtp, wmatom[WMName]);
> > XSetTextProperty(dpy, w, &xtp, XA_WM_NAME);
> > XFree(xtp.value);
> > --
> > 2.26.2
> >
> >
>
> Hi,
>
> Just curious, whats your system locale?
>
> Can you show the output of `locale`?
>
$ locale
LANG=ru_RU.utf8
LC_CTYPE="ru_RU.utf8"
LC_NUMERIC=POSIX
LC_TIME="ru_RU.utf8"
LC_COLLATE="ru_RU.utf8"
LC_MONETARY="ru_RU.utf8"
LC_MESSAGES="ru_RU.utf8"
LC_PAPER="ru_RU.utf8"
LC_NAME="ru_RU.utf8"
LC_ADDRESS="ru_RU.utf8"
LC_TELEPHONE="ru_RU.utf8"
LC_MEASUREMENT="ru_RU.utf8"
LC_IDENTIFICATION="ru_RU.utf8"
LC_ALL=
Received on Thu Jun 11 2020 - 07:30:44 CEST
This archive was generated by hypermail 2.3.0
: Thu Jun 11 2020 - 07:36:37 CEST