:------- Problem reported by <[EMAIL PROTECTED]>
:I have problems with the i386 v2.6.3 of rxvt.
:I have downloaded and installed the xvgafont set of fonts (a Vga font
:for X11 in iso8859-1 encoding) by Massimo Dal Zotto <[EMAIL PROTECTED]>.
:But I can't use it with 'rxvt -fn vga-iso8859-1', under certain
:circumstances, which result in segmentation faults. 'xterm -fn
:vga-iso8859-1', on the other hand, works as expected.
:
:I could trace the problem down to the locales settings:
:    LC_CTYPE=iso_8859_1 ; export LC_CTYPE
:    LANG=de_DE ; export LANG
:works, but I have no Umlauts and a warning: "rxvt: Setting locale
:failed."  As soon as I add
:    LC_ALL=de_DE ; export LC_ALL
:which would give me Umlauts in xterm, but rxvt segfaults. [...]
:------- End of Forwarded Message

Re: "rxvt: Setting locale failed."
This is a bug I've just isolated and fixed in the current (CVS/anonCVS)
version (on the main trunk).  Patch for 2.6.x at end.

Re: vga-iso8859-1
I'm getting this crashing in the Xlib routine XCreateFontSet() (under
XFree3.3.6).  However, if I give the font a valid name (as per the
XLFD conventions), i.e. hand edit the appropriate fonts.dir and call
it something like (couple of arbitrary (wrong?) choices here - I didn't
bother querying the font):
  -misc-vga-medium-r-normal--14-130-75-75-c-70-iso8859-1
and refresh the fonts (I have to restart X here) then it works for
me without problems.  Of course, the change to the fonts.dir is
only going to last until one regenerates that list (adding/removing
fonts in that directory) and the name should be fixed in the font
itself.  I'm not sure rxvt can/should really do much here.

Regards,
Geoff

Patch:
--- src/command.c       2000/08/07 05:13:25     1.85.2.32
+++ src/command.c       2000/10/25 16:31:26
@@ -984,7 +984,7 @@
     char           *locale = NULL;
 
 #if !defined(NO_XSETLOCALE) || !defined(NO_SETLOCALE)
-    locale = setlocale(LC_CTYPE, "");
+    locale = setlocale(LC_CTYPE, NULL);
 #endif
 #ifdef USE_XIM
     if (locale == NULL)

Reply via email to