From david.durham.jr at gmail.com Thu Mar 6 23:47:11 2008 From: david.durham.jr at gmail.com (David Durham, Jr.) Date: Thu, 6 Mar 2008 16:47:11 -0600 Subject: [Expat-discuss] building apache with expat 1.95.8 Message-ID: Hi all, I'm facing the issue described here: http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash I would like to recompile apache with 1.95.8, but I'm not sure how exactly to do that. I don't see a --with-expat option in apache ./configure --help. Any help? Thanks, Dave From dbn.lists at gmail.com Fri Mar 7 00:38:24 2008 From: dbn.lists at gmail.com (Dan Nicholson) Date: Thu, 6 Mar 2008 15:38:24 -0800 Subject: [Expat-discuss] building apache with expat 1.95.8 In-Reply-To: References: Message-ID: <91705d080803061538y6c140aa5x9904598453a123a3@mail.gmail.com> On Thu, Mar 6, 2008 at 2:47 PM, David Durham, Jr. wrote: > Hi all, I'm facing the issue described here: > > http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash > > I would like to recompile apache with 1.95.8, but I'm not sure how > exactly to do that. I don't see a --with-expat option in apache > ./configure --help. This would probably be more appropriate for an apache list, but... I don't know if this has changed over the years, but in the current httpd, expat is pulled in by apr-util. So, `./srclib/apr-util/configure --help' will show you the --with-expat=DIR option. Options from the top-level are just passed down, so you can just pass --with-expat=/usr/local or whatever in addition to your other flags. It should try to find a system expat installation before falling back to the bundled expat even if you don't pass any options. -- Dan From jose.carlos.pereira at ist.utl.pt Wed Mar 12 23:51:32 2008 From: jose.carlos.pereira at ist.utl.pt (Carlos Pereira) Date: Wed, 12 Mar 2008 22:51:32 +0000 Subject: [Expat-discuss] locale: LC_ALL=french; export LC_ALL Message-ID: <47D85E74.30503@ist.utl.pt> Dear all, I received a complain that my Expat app does not read dot-based decimal numbers when locale is set to a comma-based country, such as France: LC_ALL=french; export LC_ALL If I have this: x, y are not understood as proper float numbers, when locale defines commas for decimal separators. And vice-versa: commas are not accepted when locale is the default (or presumably locales such as US). I think the ideal solution would be: when importing files, accept both dots and commas, so for example this XML line should be acceptable: Then do all the work in the locale chosen decimal separator. So a US user would work and export with dots, send the file to his french friend, who reads the dots and then works with commas, export with commas, send the file back to the US user who reads the commas without problems. Is there a simple way to allow simultaneously dots and commas in the same XML file, with Expat? or at least all dots in one file and all commas in another, and be able to read both? is this actually allowed in the XML specification? Carlos From nickmacd at gmail.com Thu Mar 13 17:38:45 2008 From: nickmacd at gmail.com (Nick MacDonald) Date: Thu, 13 Mar 2008 12:38:45 -0400 Subject: [Expat-discuss] locale: LC_ALL=french; export LC_ALL In-Reply-To: <47D85E74.30503@ist.utl.pt> References: <47D85E74.30503@ist.utl.pt> Message-ID: Carlos: Although I have used eXpat, I don't profess to be an expert. However, in my limited experience, I can't see how you could encounter the type of problem you are referring to. You didn't give any specific error message, or in fact any definite indication of what component might be failing, but I can't see how it could be eXpat. In my experience, eXpat does NOT interpret the data, it just supplies it to your program, and you need to make an interpretation. Accordingly, I suspect the problem is inside your app and how you use the resulting data from eXpat, and not with eXpat itself. Good luck, Nick On Wed, Mar 12, 2008 at 6:51 PM, Carlos Pereira wrote: > Dear all, > I received a complain that my Expat app does not read > dot-based decimal numbers when locale is set to a > comma-based country, such as France: > > LC_ALL=french; export LC_ALL > > If I have this: > > x, y are not understood as proper float numbers, when locale > defines commas for decimal separators. And vice-versa: commas > are not accepted when locale is the default (or presumably locales > such as US). > > I think the ideal solution would be: when importing files, accept both > dots and commas, so for example this XML line should be acceptable: > > > > Then do all the work in the locale chosen decimal separator. So a US > user would work and export with dots, send the file to his french friend, > who reads the dots and then works with commas, export with commas, > send the file back to the US user who reads the commas without problems. > > Is there a simple way to allow simultaneously dots and commas > in the same XML file, with Expat? or at least all dots in one file > and all commas in another, and be able to read both? > > is this actually allowed in the XML specification? > Carlos -- Nick MacDonald NickMacD at gmail.com From jose.carlos.pereira at ist.utl.pt Thu Mar 13 23:19:08 2008 From: jose.carlos.pereira at ist.utl.pt (Carlos Pereira) Date: Thu, 13 Mar 2008 22:19:08 +0000 Subject: [Expat-discuss] locale: LC_ALL=french; export LC_ALL In-Reply-To: References: <47D85E74.30503@ist.utl.pt> Message-ID: <47D9A85C.5030003@ist.utl.pt> Nick MacDonald wrote: > Carlos: > > In my experience, > eXpat does NOT interpret the data, it just supplies it to your > program, and you need to make an interpretation. Accordingly, I > suspect the problem is inside your app and how you use the resulting > data from eXpat, and not with eXpat itself. > > You are absolutely right, expat just feeds me const char data, my fault, I apologize. Anyway, according to XML schema, only dots are allowed as decimal separators: http://www.w3.org/TR/xmlschema-2/#decimal So it might be better to take the conservative approach, at least for the moment, and to forget about commas and other locale-defined separators and do everything with decimal points... simple and consistent... Carlos From webmaster at binera.de Mon Mar 17 23:39:06 2008 From: webmaster at binera.de (Sebastian Pipping) Date: Mon, 17 Mar 2008 23:39:06 +0100 Subject: [Expat-discuss] Expat task in Apache ideas of Google Summer of Code 2008 Message-ID: <47DEF30A.9040203@binera.de> I stumbled upon an Expat-related task in the Apache ideas of Google Summer of Code 2008. I want 50 percent of your income if you would have missed it without me ;-) http://wiki.apache.org/general/SummerOfCode2008#expat-axis2c-integration Subject ID expat-axis2c-integration Title Integrate expat parser into Axis2/C soap engine ASF Project Apache Axis2/C Keywords Apache Axis2/C, expat, xml, soap Description Apache Axis2/C is a soap processing engine written in C. Any xml parser could be pluggable to Axis2/C engine through a parser abstraction layer, already we have integrated two xml parsers to Axis2/C engine namly libxml2 and Guththila xml parser. This is an idea to integrate expat parser to Apache Axis2/C through parser abstraction layer. If you need more information please come and ask on Possible Mentors Dinesh Premalal Status No Student yet Sebastian