brahm@alum.mit.edu
2002-Apr-10 15:22 UTC
[Rd] Funny characters in x11 window title (PR#1451)
In R-1.5.0pre (2002-04-08) on Solaris 2.6, the window that X11() creates has a title like: R Graphics: Device 2 (ACTIVE) o iyeP )( y except the funny characters at the end have umlauts and other accents (i.e. extended ASCII characters), and they may be different each time X11() is invoked. There is no loss of functionality; it just looks a little ugly. I saw this behavior in R-1.3.?, it disappeared (along with the whole window title) in R-1.4.1, and now it's back in R-1.5.0pre. -- David Brahm (brahm@alum.mit.edu) --please do not edit the information below-- Version: platform = sparc-sun-solaris2.6 arch = sparc os = solaris2.6 system = sparc, solaris2.6 status = Under development (unstable) major = 1 minor = 5.0 year = 2002 month = 04 day = 08 language = R Search Path: .GlobalEnv, package:misc, package:io, package:arrays, package:ls1, package:g.data, package:db, package:ts, package:ctest, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
maechler@stat.math.ethz.ch
2002-Apr-10 15:47 UTC
[Rd] Funny characters in x11 window title (PR#1451)
>>>>> "DavidB" == David Brahm <brahm@alum.mit.edu> writes:DavidB> In R-1.5.0pre (2002-04-08) on Solaris 2.6, the DavidB> window that X11() creates has a title like: DavidB> R Graphics: Device 2 (ACTIVE) o iyeP )( y DavidB> except the funny characters at the end have umlauts DavidB> and other accents (i.e. extended ASCII characters), DavidB> and they may be different each time X11() is DavidB> invoked. There is no loss of functionality; it just DavidB> looks a little ugly. This made me look at our Solaris (2.5.1 + tons of patches) version of R-1.5.0pre (2002-04-09). There, X11() {or "plot(1)"} opens a window very quickly and then ends in a segmentation fault (see below). Our automatic checking (unfortunately ?) nowadays excludes all interactive features, including non-file graphical devices... Yes, this will be investigated! Here is my story (does anyone have a suggestion to get rid of GDB's warning get better track of R_X11.so ?) % R -d gdb GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16 (sparc-sun-solaris2.5.1), Copyright 1996 Free Software Foundation, Inc... (gdb) r --vanilla Starting program: /sfs/u/staff/maechler/R/D/r-devel/SunOS-inst/bin/R.bin --vanilla warning: Unable to find dynamic linker breakpoint function. warning: GDB will be unable to debug shared library initializers warning: and track explicitly loaded dynamic code. R : Copyright 2002, The R Development Core Team Version 1.5.0 Under development (unstable) (2002-04-09) <.....> > x11() Program received signal SIGSEGV, Segmentation fault. 0xef4bbb2c in ?? () from /sfs/u/staff/maechler/R/D/r-devel/SunOS-inst/modules/R_X11.so (gdb) bt #0 0xef4bbb2c in ?? () from /sfs/u/staff/maechler/R/D/r-devel/SunOS-inst/modules/R_X11.so #1 0xef4bbb0c in ?? () from /sfs/u/staff/maechler/R/D/r-devel/SunOS-inst/modules/R_X11.so #2 0xef4bd2a4 in ?? () from /sfs/u/staff/maechler/R/D/r-devel/SunOS-inst/modules/R_X11.so #3 0x92340 in Rf_addDevice (dd=0xb4bae8) at ../../../R/src/main/graphics.c:5630 #4 0xfe91c in Rf_addX11Device (display=0x21a600 "\b", width=7, height=7, ps=12, gamma=1, colormodel=4, maxcubesize=256, canvascolor=16777215, devname=0x19edd8 "X11", deviceDriverRoutine=0xef4bd938 <_end+135424>) at ../../../R/src/unix/devices.c:326 #5 0xfe7e4 in do_X11 (call=0x19edd8, op=0x2173e8, args=0xffffff, env=0xb47f34) at ../../../R/src/unix/devices.c:289 #6 0xa39ec in do_internal (call=0x1b949c, op=0x19edd8, args=0xb47e1c, env=0xb47f34) at ../../../R/src/main/names.c:1020 #7 0x7ba3c in Rf_eval (e=0x9f1fa0, rho=0xb47f34) at ../../../R/src/main/eval.c:404 #8 0x7be2c in Rf_applyClosure (call=0xb390f4, op=0x9f1ec0, arglist=0x1f9ea0, rho=0x21ab78, suppliedenv=0x1f9ea0) at ../../../R/src/main/eval.c:595 #9 0x7b824 in Rf_eval (e=0xb390f4, rho=0x21ab78) at ../../../R/src/main/eval.c:439 #10 0x968b8 in R_ReplConsole (rho=0x21ab78, savestack=0, browselevel=0) at ../../../R/src/main/main.c:187 #11 0x970d0 in run_Rmainloop () at ../../../R/src/main/main.c:499 #12 0xff1bc in main (ac=0, av=0xefffe79c) at ../../../R/src/unix/system.c:93 (gdb) DavidB> I saw this behavior in R-1.3.?, it disappeared (along with the whole window DavidB> title) in R-1.4.1, and now it's back in R-1.5.0pre. DavidB> -- David Brahm (brahm@alum.mit.edu) DavidB> --please do not edit the information below-- DavidB> Version: DavidB> platform = sparc-sun-solaris2.6 DavidB> arch = sparc DavidB> os = solaris2.6 DavidB> system = sparc, solaris2.6 DavidB> status = Under development (unstable) DavidB> major = 1 DavidB> minor = 5.0 DavidB> year = 2002 DavidB> month = 04 DavidB> day = 08 DavidB> language = R -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
p.dalgaard@biostat.ku.dk
2002-Apr-10 18:59 UTC
[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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Warnes, Gregory R
2002-Apr-10 20:28 UTC
[Rd] Funny characters in x11 window title (PR#1451)
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
gregory_r_warnes@groton.pfizer.com
2002-Apr-10 20:30 UTC
[Rd] Funny characters in x11 window title (PR#1451)
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
brahm@alum.mit.edu
2002-Apr-10 20:57 UTC
[Rd] Funny characters in x11 window title (PR#1451)
Peter Dalgaard <p.dalgaard@biostat.ku.dk> wrote:> 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 ?Replacing '50' with 'strlen(t)' in those 2 places cures the problem for me! Brilliant! -- -- David Brahm (brahm@alum.mit.edu) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._