Virtuoso (R) and Windowmaker

S

Satya Mishra

Guest
Hi All

Here's a pesky problem I am trying to deal with, but have found no
easy solution.

With IC5.0 Cadence decided that they must let the engineers who use
their products know that Virtuoso is a registered trademark. So they
included in the title the ISO-8859-1 character 0xae. Now I like
Windowmaker as my window manager. It uses UTF-8 for displaying title
bar. UTF-8 and ISO-8859-1 have the same characters upto 0x7f. But 0xae
is not a valid UTF-8 character and Windowmaker chops off the rest of
the title.

Does anyone know if there is a way to make the window title encoding
UTF-8 in Virtuoso?

Any help would be greatly appreciated.

Regards
Satya

--
Remove XXX and YYY to get my address
 
Satya Mishra wrote:
Does anyone know if there is a way to make the window title encoding
UTF-8 in Virtuoso?
Hm... most of the DFII tools are pretty much locale unaware.

I can supply a hack, but I must emphasize that this is a very, very
extreme and unsanctioned hack -- use it only on your own, personal DFII
install, and only if this is keeping you from getting work done and you
can't find a way to force WindowMaker to use ISO-8859-1 encoding, and
don't expect anyone here to provide support...

(Anyone else who might be reading this from Cadence... you didn't see
this. :)

Compile the attached C program (to, say, ~/changetm), and then:
cd DFIIDirectory/tools/dfII/etc/context
~/changetm *.cxt

This will insert a binary hack to convert every instance of Virtuoso\xae
to VirtuosoR.

--
David Cuthbert dacut at cadence dot com
Cadence Design Systems +1 (412) 599-1820
 
"David" == David Cuthbert <"dacut at cadence dot com"> writes:
David> Satya Mishra wrote:
Does anyone know if there is a way to make the window title
encoding UTF-8 in Virtuoso?
David> Hm... most of the DFII tools are pretty much locale
David> unaware.

David> I can supply a hack, but I must emphasize that this is a
David> very, very extreme and unsanctioned hack -- use it only on
David> your own, personal DFII install, and only if this is
David> keeping you from getting work done and you can't find a way
David> to force WindowMaker to use ISO-8859-1 encoding, and don't
David> expect anyone here to provide support...

David> (Anyone else who might be reading this from Cadence... you
David> didn't see this. :)

David> Compile the attached C program (to, say, ~/changetm), and
David> then: cd DFIIDirectory/tools/dfII/etc/context ~/changetm
David> *.cxt

David> This will insert a binary hack to convert every instance of
David> Virtuoso\xae to VirtuosoR.
<snip>

David

Thank you very much for your help. However, I, like most engineers,
are limited by what sys-admins let me do. So, change the cxt files is
out of question. I am trying to write a script that uses "xprop -spy"
and "iconv -f iso-8859-1 -t utf-8" to make it work.

Thank you very much for the C program. But if I am not very much
mistaken, the same effect can be achieved using "gvim -b" or
"binary-overwrite-mode" in emacs. I am not too sure of the latter. I
use the former fairly frequently to edit binary files without changing
the byt alignment and such stuff.

Thanks again for the help.

Satya

--
Remove XXX and YYY to get my address
 
Satya Mishra wrote:
Thank you very much for your help. However, I, like most engineers,
are limited by what sys-admins let me do. So, change the cxt files is
out of question. I am trying to write a script that uses "xprop -spy"
and "iconv -f iso-8859-1 -t utf-8" to make it work.
You could also fix WindowMaker. The ICCCM specifies that STRING types
should be ISO-Latin-1 (i.e., ISO-8859-1) encoding, but WindowMaker
ignores this and treats all strings as UTF-8.

If you can compile WindowMaker from scratch -- the source is at:
ftp://windowmaker.org/pub/source/release/WindowMaker-0.91.0.tar.gz
apply the attached patch (patch -p1 < wmaker-utf8.patch), configure,
make, make install, it should work. I can't compile WindowMaker fully
on this system, though, since it doesn't have a working, up-to-date
fontconfig (we're still at RHEL 2.1 here).

Thank you very much for the C program. But if I am not very much
mistaken, the same effect can be achieved using "gvim -b" or
"binary-overwrite-mode" in emacs. I am not too sure of the latter. I
use the former fairly frequently to edit binary files without changing
the byt alignment and such stuff.
Yep... I just wasn't sure which editor(s) you had access to.

--
David Cuthbert dacut at cadence dot com
Cadence Design Systems +1 (412) 599-1820
 
"David" == David Cuthbert <"dacut at cadence dot com"> writes:
snip
David> Date: Fri, 10 Jun 2005 14:13:01 -0400

David> You could also fix WindowMaker. The ICCCM specifies that
David> STRING types should be ISO-Latin-1 (i.e., ISO-8859-1)
David> encoding, but WindowMaker ignores this and treats all
David> strings as UTF-8.

David> If you can compile WindowMaker from scratch -- the source
David> is at:
David> ftp://windowmaker.org/pub/source/release/WindowMaker-0.91.0.tar.gz
David> apply the attached patch (patch -p1 < wmaker-utf8.patch),
David> configure, make, make install, it should work. I can't
David> compile WindowMaker fully on this system, though, since it
David> doesn't have a working, up-to-date fontconfig (we're still
David> at RHEL 2.1 here).
<snip>

David

Thanks a lot for the patch. It certainly was more help than I could
expect. You make it too easy! The code compiled like a charm and I get
good window titles again.

I will probably follow up and submit a bug to WindowMaker project,
unless you have already done so.

RHEL 2.1. Wow! I used to think that RHEL 3.0 that we use at our
company was ancient.

Regards
Satya


--
Remove XXX and YYY to get my address
 
"Satya" == Satya Mishra <snmishra@XXXhotYYYpop.com> writes:
Satya> Date: Tue, 14 Jun 2005 08:55:44 -0600

"David" == David Cuthbert <"dacut at cadence dot com"> writes:
Satya> <snip
David> Date: Fri, 10 Jun 2005 14:13:01 -0400

David> If you can compile WindowMaker from scratch -- the source
David> is at:
David> ftp://windowmaker.org/pub/source/release/WindowMaker-0.91.0.tar.gz
David> apply the attached patch (patch -p1 < wmaker-utf8.patch),
David> configure, make, make install, it should work. I can't
David> compile WindowMaker fully on this system, though, since it
David> doesn't have a working, up-to-date fontconfig (we're still
David> at RHEL 2.1 here).

Satya> Thanks a lot for the patch. It certainly was more help than
Satya> I could expect. You make it too easy! The code compiled
Satya> like a charm and I get good window titles again.

David

My happiness was short-lived. The patched seemed to work initially (I
was using IC5033), but then I started IC5141 and the window titles
were gone again.

Then I figured out that WindowMaker takes a --locale argument. So
starting WindowMaker as "wmaker --locale C" seems to fix the
problem. For some reason the locale was getting set to something
else.


Thanks for all the help.

Satya

--
Remove XXX and YYY to get my address
 
Satya Mishra wrote:
Thanks a lot for the patch. It certainly was more help than I could
expect. You make it too easy! The code compiled like a charm and I get
good window titles again.

I will probably follow up and submit a bug to WindowMaker project,
unless you have already done so.
Glad that this and/or the --locale flag worked. Go ahead and ping the
WindowMaker folks -- they know a lot more about the ICCCM that I do, and
would be able to say whether my suspicion is correct or I'm off my
rocker or...

RHEL 2.1. Wow! I used to think that RHEL 3.0 that we use at our
company was ancient.
We have to compile our tools on the oldest version of each platform we
support. This holds especially true for Linux, which compiles version
information into our executables and libraries (and will explicitly
refuse to run on older systems).

I do run a bleeding-edge Gentoo box at home, though.

--
David Cuthbert dacut at cadence dot com
Cadence Design Systems +1 (412) 599-1820
 

Welcome to EDABoard.com

Sponsor

Back
Top