From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Tue, 4 Feb 2003 04:52:52 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 34 ************************************************** Monday 03 February 2003 Number 34 ************************************************** Subjects for today 1 recode / iconv gdk/gtk : Franz Bakan" 2 UnixOS2.org site update : IanM" 3 Re: recode / iconv gdk/gtk : Sebastian Wittmeier (ShadoW)" 4 Re: ZLIB change : Maynard" 5 Re: fetchmail 6.2.1 patch : Andrew MacIntyre 6 ZLIB change : John Poltorak 7 Re: recode / iconv gdk/gtk : John Poltorak 8 Re: recode / iconv gdk/gtk : Franz Bakan" 9 NETPBM : John Poltorak 10 Re: ZGV : Sebastian Wittmeier (ShadoW)" 11 Re: ZLIB change : Jeff Robinson 12 Re: ver /r from shell script : xyzyx" 13 Re: ZLIB change : Thomas Hoffmann 14 readline 4.1 can cause SIGFPEs : Thomas Hoffmann **= Email 1 ==========================** Date: Tue, 04 Feb 2003 00:33:31 +0100 (CET) From: "Franz Bakan" Subject: recode / iconv gdk/gtk Hi, is there a tool available that can convert UTF-8 to iso-8859-1 (for example)? I know there is libiconv-1.8 which can be compiled on OS/2 and includes such an executable and the build-process produces iconv.exe and iconv.dll But the produced iconv.dll is not equivalent to the one created by Andreas and I can't use this iconv.exe with the dll provided by Andreas intended to be the 'standard'. 1.8 iconv.exe works with the iconv.dll produced by the same package, but I can't have 2 dlls with the same name in my libpath. One would probably be able to produce a statical linked version of iconv.exe but perhaps there is allready another solution. The reason why I need this tool is because gdk/gtk 1.x available for OS/2 does not support UTF-8 and so far nobody has ported gtk/gdk 2.x to OS/2 and the SANE-crew changed .po format to UTF-8 And so I have to convert UTF-8 to something else to make it compatible with the older gtk/gdk-based XFree-applications. The better long-term solution would be gtk/gdk 2.x available for OS/2 of course. Bye, Franz **= Email 2 ==========================** Date: Tue, 04 Feb 2003 01:47:50 +1100 (EDT) From: "IanM" Subject: UnixOS2.org site update Hi All Downloads at unixos2.com, os2site.com, and ecssite.com are now throttled to 100k, with a thread limit of 4. The sites are now on a 1.5Mb SHDSL line, which support equal upstream and downstream data rates on a DSL line. Have fun. Cheers IanM http://www.os2site.com/ WINERR 00E - OPEN STANDARD ENCOUNTERED; ATTEMPTING TO REDMONDIZE **= Email 3 ==========================** Date: Tue, 04 Feb 2003 03:10:50 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: recode / iconv gdk/gtk On Tue, 04 Feb 2003 00:33:31 +0100 (CET), Franz Bakan wrote: >is there a tool available that can convert UTF-8 to iso-8859-1 (for example)? Yes, recode is available for OS/2. Do you need the newest version for that conversion? Sebastian **= Email 4 ==========================** Date: Tue, 04 Feb 2003 07:38:07 -0600 (CST) From: "Maynard" Subject: Re: ZLIB change John, >I do not want to be forced into using BASH. Certainly not. It's just like religion. We use bash because we WANT to, not because we're forced to ;-} I guess you're not used to having a command history and auto-complete (filenames and paths) at your fingertips. You're really missing out on the good life. -- Maynard **= Email 5 ==========================** Date: Tue, 4 Feb 2003 08:24:45 +1000 (est) From: Andrew MacIntyre Subject: Re: fetchmail 6.2.1 patch On Mon, 3 Feb 2003, John Poltorak wrote: > http://os2power.dnsalias.com/yuri/software/fetchmail621.zip While I've not tried it on OS/2 (I use it on FreeBSD), getmail is a pure Python alternative to fetchmail. I don't recall the URL off the top of my head, but the search facility at freshmeat.net will turn it up if anyone is interested. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac at pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia **= Email 6 ==========================** Date: Tue, 4 Feb 2003 09:11:37 +0000 From: John Poltorak Subject: ZLIB change Building ZLIB on OS/2 requires BASH to be the SHELL. Can we change this to SH? Or find some alternative way of specifying SHELL? I do not want to be forced into using BASH. -- John **= Email 7 ==========================** Date: Tue, 4 Feb 2003 09:17:47 +0000 From: John Poltorak Subject: Re: recode / iconv gdk/gtk On Tue, Feb 04, 2003 at 09:50:16AM +0100, Franz Bakan wrote: > Sebastian Wittmeier (ShadoW) wrote: > > >>is there a tool available that can convert UTF-8 > >>to iso-8859-1 (for example)? > > > >Yes, recode is available for OS/2. > >Do you need the newest version for that conversion? > > The one I have (from HOBBES) is from 1994 and does > not do this job. Is there a newer version available? I have just been attempting to build v3.6, but there is no sign of an executable anywhere, although a recode.a gets created. Can anyone look at the Makefile and tell me what is supposed to get built? > Franz -- John **= Email 8 ==========================** Date: Tue, 04 Feb 2003 09:50:16 +0100 (MEZ) From: "Franz Bakan" Subject: Re: recode / iconv gdk/gtk >> is there a tool available that can convert UTF-8 >> to iso-8859-1 (for example)? Henry Sobotka wrote: >I've used Mozilla's Composer (Save as Charset feature) to convert from >Bg5 and other Han charsets to Unicode. It definitely knows about the two >you mention so might serve your purposes. Thanks, I will have a look at it. But this solution probably won't work for automated conversion in batch/make-files. Sebastian Wittmeier (ShadoW) wrote: >>is there a tool available that can convert UTF-8 >>to iso-8859-1 (for example)? > >Yes, recode is available for OS/2. >Do you need the newest version for that conversion? The one I have (from HOBBES) is from 1994 and does not do this job. Is there a newer version available? Franz **= Email 9 ==========================** Date: Tue, 4 Feb 2003 10:40:39 +0000 From: John Poltorak Subject: NETPBM Is there a recent OS/2 version of NETPBM around? There is a netpbm project on SourceForge. Anyone tried building the latest source on OS/2? -- John **= Email 10 ==========================** Date: Tue, 04 Feb 2003 16:02:41 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: ZGV On Mon, 3 Feb 2003 11:02:05 +0000, John Poltorak wrote: >Anyone ever heard of ZGV? There is XZGV, too. I got that one to compile, but the program crahes, when called (tried with HobLink and Everblue). If anyone wants to give it a try with real XFree86: http://www.ginko.de/user/sebastian.wittmeier/xzgv/xzgv.zip Sebastian **= Email 11 ==========================** Date: Tue, 04 Feb 2003 17:01:09 -0600 From: Jeff Robinson Subject: Re: ZLIB change Thomas Hoffmann wrote: > > There is simpy no bash for OS/2 at the moment that is sufficiently > bug-free (or at least actively maintained). > > Thomas I've actually been working on GNU bash 2.05a, based on the patches from Jun SAWATAISHI as well as a tmpdir fix. I managed to apply all the patches and use Jun's build system to create the executable; though I believe everything is statically linked right now so my bash.exe is over a meg in size. What I'm trying to do now is clean things up so that I can get away with a single config.os2 file as well as a couple OS/2 specific support files that Jun created. I'm working towards trying to get things to work with the minimum amount of changes possible (to the main source). Incase anyone is wonder why I started with 2.05a, that is the version the Jun SAWATAISHI's extensive patches were based on... I figured once that was working I'd move to 2.05b, which I believe is the latest. Jeff -- ---------------- Whatza JamochaMUD? http://jamochamud.anecho.mb.ca Or other stuff: http://www.anecho.mb.ca/~jeffnik ----------------------------------------------------------- **= Email 12 ==========================** Date: Tue, 04 Feb 2003 20:03:46 -0600 (CST) From: "xyzyx" Subject: Re: ver /r from shell script On Mon, 3 Feb 2003 14:22:10 +0000, John Poltorak wrote: > >How do I retrieve this info:- > >The Operating System/2 Version is 4.50 >Revision 14.039 > >from within a shell script? cmd /q /c "ver /r" regards, paul **= Email 13 ==========================** Date: Tue, 04 Feb 2003 22:33:22 +0100 From: Thomas Hoffmann Subject: Re: ZLIB change Maynard, that's all good and well, but for executing configure scripts and the like, history and completion are not that important. I used bash (alternating wish ash: it did depend on whoms bugs I had more use for at the moment ;-)) for the above, too: Because of lack of a working alternative. And I must say, we have now a shell that works far more reliable for configuring/making in unixos2: pdksh ( at (#)PD KSH v5.2.14 99/07/13.2). There is simpy no bash for OS/2 at the moment that is sufficiently bug-free (or at least actively maintained). Thomas Maynard wrote: > John, > > >>I do not want to be forced into using BASH. > > > Certainly not. It's just like religion. We use bash because we WANT to, > not because we're forced to ;-} > > I guess you're not used to having a command history and auto-complete > (filenames and paths) at your fingertips. You're really missing out on > the good life. > > -- Maynard > > > > **= Email 14 ==========================** Date: Tue, 04 Feb 2003 23:32:50 +0100 From: Thomas Hoffmann Subject: readline 4.1 can cause SIGFPEs This looked rather mysterious to me: I copy/pasted "harmless" sample code from a Web page into the Vio window of a statistics application and ended up with a crash due to a SIGFPE. Because this application is rather complex I had to test and debug for a while until I found out that: -the crash happens only for pasted (Sh-Ins style) text, not for the same text keyed in and not for the same text pasted using the MB1+MB2 method, -after Sh-Ins the programs crashes even when I deleted this text and typed over it the same text: the program seemed to become "contaminated" by the Sh-Ins Now the above mentioned program masks floating point exceptions and uses IEEE style handling as provided by libcext. (But EMX by default uses the same masking at the start of a program.) I noticed that my sample input internally created a FP error which is normally handled by the program. To make a long story short: readline (which is used in the above program) uses for getting a working Sh-Ins (...which needs the Clipboard and has to be a PM program for this) the "morphing trick" (read older OS/2 archives for details). As soon as WinCreateMsgQueue() is called (which is necessary for getting access to the Clipboard), the "control word" for the FPU is reset (is this documented anywhere?) and subsequent FP errors can no longer be handled by the program but lead to a crash. My question: Isn't it a bit too risky to silently reset the FP status when using the Sh-Ins provided by readline? For now I see only two solutions for this problem: either remove this (convenient) clipboard access from readline or bracket the corresponding code with save/restore code for the FPU state (...are there possibly other program stati that get reset by "morphing" the application"?) Thomas.