Bug#849701: can't handle Chinese characters in the title bar

2017-01-05 Thread Toni Mueller


Hi,

On Thu, Jan 05, 2017 at 11:05:46PM +0100, Andreas Ronnquist wrote:
> By default, Sakura doesn't change title of window or Tab to the current
> folder name, as I get the impression it does on your system.

I think both bash and zsh, which I use, do it by default. There are some
escape sequences to control this behaviour.

> I have had a report previously by someone adding stuff to bashrc to
> make it so - have you something similar installed to your bashrc?

I use zsh, and my .zshrc, mostly generated, does this for me. However, I
used roxterm before and never had this problem.

> See the previous Sakura bug:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821783
> 
> and 
> http://tldp.org/HOWTO/Xterm-Title-3.html

Thank you! I'll take a look.

> As Sakura does set UTF-8 names correctly on both Window title and tab
> title for me, I am guessing that you are using some xterm escape
> sequences in a faulty way.

Hmmm - see above. Feel free to suggest something, regarding escape
sequences. I'm happy to test them.


Cheers,
--Toni++



Bug#849701: can't handle Chinese characters in the title bar

2017-01-05 Thread Andreas Ronnquist
Toni Mueller wrote:
> the weird thing is, inside the shell, vi, emacs, firefox and
> LibreOffice, I have no trouble writing those characters and seeing
> them properly. But I don't know which fonts are involved. OTOH, I
> have about every font package installed that is available in Debian,
> and if I 'ls' to show the directory, it just works. I also didn't
> tune anything that I am aware of.
> 
> I just made a test by going into a directory which has an all-Chinese
> name. The tab title bar stops at the last directory with all-Latin
> characters, and only displays a trailing slash. If I go into that
> other directory with a mixed name, I get the question marks. I then
> made another test and created a directory with a different mixed
> name, but the same Chinese characters. Then I cd'ed into it, and the
> window title changed to only display the latin part of the directory
> name. To me, it seems that the display of Chinese characters is sort
> of "unstable".
> 
> FWIW, the Chinese chaacters in question are 老歌。

By default, Sakura doesn't change title of window or Tab to the current
folder name, as I get the impression it does on your system. I have had
a report previously by someone adding stuff to bashrc to make it so -
have you something similar installed to your bashrc?

See the previous Sakura bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821783

and 
http://tldp.org/HOWTO/Xterm-Title-3.html

As Sakura does set UTF-8 names correctly on both Window title and tab
title for me, I am guessing that you are using some xterm escape
sequences in a faulty way.

-- Andreas Rönnquist
gus...@debian.org



Bug#849701: can't handle Chinese characters in the title bar

2017-01-05 Thread Toni Mueller


Hi Andreas,

On Thu, Jan 05, 2017 at 09:28:59PM +0100, Andreas Ronnquist wrote:
> Toni Mueller wrote:
> > I just discovered that Sakura apparently cannot handle UTF-8 window
> > titles. Please see the attached screenshot, which shows two carets
> > with question marks, where I would like to see two Chinese characters.
> 
> I have tried some UTF-8 characters and it works just fine for me -
> Also your image looks to me to show the tab title, and not the window
> title (just to be clear) - I have tried some UTF-8 characters both in
> window title and tab title, and it works fine for me.
> 
> Can you make sure that the font you are using (Both the font
> for the window title, and for the tab title, it might not be the
> same) supports the Chinese characters you want it to show?

the weird thing is, inside the shell, vi, emacs, firefox and
LibreOffice, I have no trouble writing those characters and seeing them
properly. But I don't know which fonts are involved. OTOH, I have about
every font package installed that is available in Debian, and if I 'ls'
to show the directory, it just works. I also didn't tune anything that I
am aware of.

I just made a test by going into a directory which has an all-Chinese
name. The tab title bar stops at the last directory with all-Latin
characters, and only displays a trailing slash. If I go into that other
directory with a mixed name, I get the question marks. I then made
another test and created a directory with a different mixed name, but
the same Chinese characters. Then I cd'ed into it, and the window title
changed to only display the latin part of the directory name. To me, it
seems that the display of Chinese characters is sort of "unstable".

FWIW, the Chinese chaacters in question are 老歌。


Cheers,
--Toni++



Bug#849701: can't handle Chinese characters in the title bar

2017-01-05 Thread Andreas Ronnquist
Toni Mueller wrote:
> 
> I just discovered that Sakura apparently cannot handle UTF-8 window
> titles. Please see the attached screenshot, which shows two carets
> with question marks, where I would like to see two Chinese characters.
> 

I have tried some UTF-8 characters and it works just fine for me -
Also your image looks to me to show the tab title, and not the window
title (just to be clear) - I have tried some UTF-8 characters both in
window title and tab title, and it works fine for me.

Can you make sure that the font you are using (Both the font
for the window title, and for the tab title, it might not be the
same) supports the Chinese characters you want it to show?

-- Andreas Rönnquist
gus...@debian.org



Bug#849701: can't handle Chinese characters in the title bar

2016-12-29 Thread Toni Mueller
Package: sakura
Version: 3.3.4-3
Severity: normal


Hi,

I just discovered that Sakura apparently cannot handle UTF-8 window
titles. Please see the attached screenshot, which shows two carets with
question marks, where I would like to see two Chinese characters.


Thank you!


Cheers,
--Toni++



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sakura depends on:
ii  libatk1.0-0  2.22.0-1
ii  libc62.24-8
ii  libcairo-gobject21.14.8-1
ii  libcairo21.14.8-1
ii  libgdk-pixbuf2.0-0   2.36.0-1
ii  libglib2.0-0 2.50.2-2
ii  libgnutls30  3.5.7-2
ii  libgtk-3-0   3.22.5-1
ii  libpango-1.0-0   1.40.3-3
ii  libpangocairo-1.0-0  1.40.3-3
ii  libpcre2-8-0 10.22-2
ii  libvte-2.91-00.46.1-1
ii  zlib1g   1:1.2.8.dfsg-4

sakura recommends no packages.

sakura suggests no packages.

-- no debconf information