From nadvornik at suse.cz Tue Jan 3 10:28:40 2006 From: nadvornik at suse.cz (Vladimir Nadvornik) Date: Tue Jan 30 08:52:10 2007 Subject: [slang-users] Bug in slang 2.0.5 In-Reply-To: <200511301831.46348.nadvornik@suse.cz> References: <200511301831.46348.nadvornik@suse.cz> Message-ID: <200601031628.41017.nadvornik@suse.cz> On Wednesday 30 November 2005 18:31, Vladimir Nadvornik wrote: > There is a bug in slang 2.0.5 which causes that in utf8 mode a > non-ascii character can't be printed to bottom right corner. > The problem is in function write_string_with_care, which counts > bytes and not characters. > Here is a patch. Regards, -- Vladimir Nadvornik developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: nadvornik@suse.cz Drahobejlova 27 tel:+420 2 9654 2373 190 00 Praha 9 fax:+420 2 9654 2374 Ceska republika http://www.suse.cz -------------- next part -------------- A non-text attachment was scrubbed... Name: slang-2.0.5-write_string_with_care.patch Type: text/x-diff Size: 1411 bytes Desc: not available Url : http://mailman.jtan.com/pipermail/slang-users-l/attachments/20060103/e72d2962/slang-2.0.5-write_string_with_care.bin From mnoble at space.mit.edu Fri Jan 6 21:54:01 2006 From: mnoble at space.mit.edu (Michael Noble) Date: Tue Jan 30 08:52:10 2007 Subject: [slang-users] SLgtk 0.5.16 released Message-ID: <20060107025401.GA29675@svoboda.mit.edu> Version 0.5.16 of SLgtk is now available at http://space.mit.edu/CXC/software/slang/modules/slgtk The SLgtk package wraps the GIMP toolkit widget set (Gtk) for use in S-Lang, and provides a simple and modular way of adding graphical interfaces to applications (e.g. ISIS) without recoding them from scratch as GUIs. SLgtk bundles scores of guilets, ranging in function from simple buttons and screen drawing all the way to through plotting and imaging of FITS files. SLgtk also includes VWhere, an iterative, visual extension to the powerful S-Lang 'where' filtering command, as described at http://arxiv.org/pdf/astro-ph/0412003 The source release establishes build compatibility with Gtk 2.8.6, bundles a Cairo rendering example, adds overplot capability to VWhere, and includes enhancements for external building and Debian packaging. Binaries are also available for Linux, Solaris, and Mac OS/X, compiled against S-Lang versions 1 and 2. Regards, Michael S. Noble From 0x0090 at gmail.com Thu Jan 12 06:18:55 2006 From: 0x0090 at gmail.com (Marius M. M.) Date: Tue Jan 30 08:52:10 2007 Subject: [slang-users] S-Lang Thread-Safe? Message-ID: <1137064735.7333.3.camel@localhost> Hi, I would like to know if the S-Lang library (currently using 1.4.9) is thread-safe or not? Example: Is it possible to let a Keyboard-Input and a Drawing thread run separated from the program-main() that called the S-Lang init functions without getting abstruse errors or misbehaviours? Thanks, Goodbye. From davis at space.mit.edu Thu Jan 12 11:54:16 2006 From: davis at space.mit.edu (John E. Davis) Date: Tue Jan 30 08:52:10 2007 Subject: [slang-users] S-Lang Thread-Safe? In-Reply-To: <1137064735.7333.3.camel@localhost> References: <1137064735.7333.3.camel@localhost> Message-ID: <200601121654.k0CGsGNG023439@aluche.mit.edu> Marius M. M. <0x0090@gmail.com> wrote: >I would like to know if the S-Lang library (currently using 1.4.9) is >thread-safe or not? Example: Is it possible to let a Keyboard-Input and >a Drawing thread run separated from the program-main() that called the >S-Lang init functions without getting abstruse errors or misbehaviours? >Thanks, The interpreter is reentrant, but not thread safe. The SLang_init functions should be called once. --John From nadvornik at suse.cz Mon Jan 30 11:39:10 2006 From: nadvornik at suse.cz (Vladimir Nadvornik) Date: Tue Jan 30 08:52:10 2007 Subject: [slang-users] Suspicious code in slang-2.0.5 Message-ID: <200601301739.10797.nadvornik@suse.cz> Hi, We got this bugreport from David Binderman : I just tried to compile package slang-2.0.5-3 with the Intel C compiler. It said /usr/src/packages/BUILD/slang-2.0.5/src/slcommon.c(107): warning #187: use of "=" where "==" may have been intended /usr/src/packages/BUILD/slang-2.0.5/src/slcommon.c(108): warning #187: use of "=" where "==" may have been intended /usr/src/packages/BUILD/slang-2.0.5/src/slcommon.c(109): warning #187: use of "=" where "==" may have been intended The source code is if (((locale == NULL) || (*locale == 0)) && ((NULL == (locale = getenv ("LC_ALL"))) || (*locale = 0)) && ((NULL == (locale = getenv ("LC_CTYPE"))) || (*locale = 0)) && ((NULL == (locale = getenv ("LANG"))) || (*locale = 0))) return 0; Maybe the programmer intended if (((locale == NULL) || (*locale == 0)) && ((NULL == (locale = getenv ("LC_ALL"))) || (*locale == 0)) && ((NULL == (locale = getenv ("LC_CTYPE"))) || (*locale == 0)) && ((NULL == (locale = getenv ("LANG"))) || (*locale == 0))) return 0; -- Vladimir Nadvornik developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: nadvornik@suse.cz Drahobejlova 27 tel:+420 2 9654 2373 190 00 Praha 9 fax:+420 2 9654 2374 Ceska republika http://www.suse.cz From davis at space.mit.edu Mon Jan 30 17:48:27 2006 From: davis at space.mit.edu (John E. Davis) Date: Tue Jan 30 08:52:10 2007 Subject: [slang-users] Suspicious code in slang-2.0.5 In-Reply-To: <200601301739.10797.nadvornik@suse.cz> References: <200601301739.10797.nadvornik@suse.cz> Message-ID: <200601302248.k0UMmRNp032186@aluche.mit.edu> Vladimir Nadvornik wrote: >Maybe the programmer intended > > if (((locale == NULL) || (*locale == 0)) Yes. It will be fixed in 2.0.6: Changes since 2.0.5 [...] 4. src/slcommon.c: '=' instead of '==' was being used in the utf8_enable function. Thanks, --John