LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 04-21-2013, 12:29 AM   #1
shachter
Member
 
Registered: Jul 2007
Posts: 47

Rep: Reputation: 0
fvwm truncates titlebar text at first non-ascii character


This is undoubtedly an fvwm question rather than a Linux question
(i.e., fvwm probably behaves the same way on non-Linux systems too),
but linuxquestions.org is a good place to find answers to non-Linux
questions.

Anyway, fvwm is truncating titlebar text at the first
non-Ascii character. It is not a matter of the WindowFont's
inability to display non-Ascii characters, because the xmessage
command demonstrates that it can; moreover, if the font were the
problem, the non-Ascii characters would perhaps be missing, or
perhaps replaced with the default bounding box, but the Ascii
characters following the non-Ascii characters would still appear
in the titlebar, and they do not: the first non-Ascii character
ends the titlebar string. And fvwm knows that the string ends
there, because it centers the string as if it ended there.

It is an old version of fvwm, but according to the old fvwm
release notes, this old version does support iso8859-1 characters:


$ fvwm2 --version
fvwm 2.5.25 compiled on Jun 7 2008 at 00:38:53
with support for: ReadLine, Stroke, XPM, PNG, Shape, XShm, SM, Bidi text, Xinerama, XRender, XCursor, XFT, NLS

fvwm comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of fvwm under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.



I find nothing in the fabulous manual that answers this question, so
now I turn to you. Thank you in advance for any and all replies.

jay at m5 dot chicago dot il dot us

+1 773 7613784 landline
+1 410 9964737 GoogleVoice
 
Old 04-21-2013, 12:38 PM   #2
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 137

Rep: Reputation: 36
Seems you are on an old version of fvwm2, if possible you should upgrade to 2.6.5 (fvwm.org). There is also fvwm2 forums, but you will probably be asked to upgrade. The current version is fvwm2 is very stable.

Anyway can you define non-ascii ? As you can see from the attached print fvwm2 v2.6.5 works for me. My build:

fvwm 2.6.5 compiled on Aug 27 2012 at 11:01:00
with support for: ReadLine, XPM, PNG, SVG, Shape, XShm, SM, Xinerama, XRender, XCursor, XFT, NLS

John
Attached Images
File Type: png fvwm_title.png (29.1 KB, 4 views)
 
Old 04-21-2013, 11:52 PM   #3
shachter
Member
 
Registered: Jul 2007
Posts: 47

Original Poster
Rep: Reputation: 0
It made no difference. I compiled fvwm 2.6.5 and installed it in /usr/local/bin :


$ /usr/local/bin/fvwm --version
fvwm 2.6.5 compiled on Apr 21 2013 at 22:19:29
with support for: ReadLine, Stroke, XPM, PNG, SVG, Shape, XShm, SM, Bidi text, Xinerama, XRender, XCursor, XFT, NLS

fvwm comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of fvwm under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.


and then replaced the old fvwm with it :


$ /usr/local/bin/fvwm -r &


I am still not getting iso-8859-1 characters in my titlebar. Thus, in an
xterm window:


$ echo -n '^[]0;hélène^G'


puts a centered "h" in the titlebar.

The behavior of FvwmPager is interesting. There is a small area in FvwmPager
that corresponds to this xterm window, and fvwm has drawn "hélène" into that
area. So the window manager definitely knows what the window title is supposed
to be. But when I move my mouse into that area, it pops up an "h" (black h,
yellow background -- the yellow background is no wider than than the black h,
so fvwm knows that the title string ends with the h).
 
Old 04-23-2013, 06:08 PM   #4
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 137

Rep: Reputation: 36
Quote:
Originally Posted by shachter View Post
$ echo -n '^[]0;hélène^G'
I tried the echo and it works for me in xterm and rxvt on fvwm2 2.6.5, hélène shows up in the title bar. In my ~/.Xdefaults I have
Code:
XTerm*font: 10x20
so it must be the font you are using as opposed to fvwm2. I do not have an iso-8859-1 font on my system so I cannot check to see what it does.

John
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert encoding between ASCII text and ASCII English text astanton Linux - General 2 08-03-2011 04:55 PM
Bash scripting: parsing a text file character-by-character Completely Clueless Programming 13 08-12-2009 10:07 AM
To know the function on checking whether a character is ascii or unicode in C. murugesan Programming 3 01-23-2009 11:51 PM
To know the function on checking whether a character is ascii or unicode character. murugesan Programming 2 01-23-2009 02:07 PM
minicom - send string or single ascii character neutron001 Linux - Software 1 04-10-2008 08:08 PM


All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration