From gregory_r_warnes@groton.pfizer.com  Wed Apr 10 21:30:35 2002
From: gregory_r_warnes@groton.pfizer.com (gregory_r_warnes@groton.pfizer.com)
Date: Wed, 10 Apr 2002 22:30:35 +0200 (MET DST)
Subject: [Rd] Funny characters in x11 window title (PR#1451)
Message-ID: <200204102030.WAA10950@pubhealth.ku.dk>

Making this change fixes the problem.  Now x11() brings up a window properly
labeled "Device 2 (ACTIVE)".

-Greg

> -----Original Message-----
> From: p.dalgaard@biostat.ku.dk [mailto:p.dalgaard@biostat.ku.dk]
> Sent: Wednesday, April 10, 2002 2:59 PM
> To: r-devel@stat.math.ethz.ch
> Cc: R-bugs@biostat.ku.dk
> Subject: Re: [Rd] Funny characters in x11 window title (PR#1451)
> 
> 
> "Warnes, Gregory R" <gregory_r_warnes@groton.pfizer.com> writes:
> 
> > I also get funny characters in the title bar on R 1.4.1 and 
> R 1.5.0_devel
> > (yesterday's version).
> 
> My bet is that it is X-server dependent what happens with bytes past
> the end of a string set with
> 
>     XChangeProperty(display, xd->window, XA_WM_NAME, XA_STRING,
>                     8, PropModeReplace, (unsigned char*)t, 50);
> 
> (in newX11_Activate and newX11_Deactivate, src/modules/X11/devX11.c).
> 
> Could you try and replace the 50 with strlen(t) or maybe strlen(t)+1 ?
> 
> -- 
>    O__  ---- Peter Dalgaard             Blegdamsvej 3  
>   c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
>  (*) \(*) -- University of Copenhagen   Denmark      Ph: 
> (+45) 35327918
> ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: 
> (+45) 35327907
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read 
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: 
> r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._
> 


LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Funny characters in x11 window title (PR#1451)
gregory_r_warnes@groton.pfizer.com