ld require compiling an intermediate C prograAdam Thomason wrote:
Hmm, this is still wrong. The error message isn't just a function of the locale; it's also dependent on the OS. AIX is now back to expecting "No such file or directory" courtesy of LANG=C when the imcc error is "A file or directory in the path name does not exist." That's English, just not the right English. It looks like this is going to need a more involved fix that doesn't monkey with the locale and just does what IMCC is doing: calling strerror from C code. That would require compiling an intermediate C program and capturing its output in the test script. Last time this was brought up on IRC there wasn't an existing scaffold for doing that easily; has that changed?


As usual there is a bewildering array of possibilities:


i. There is already a scaffold for doing this, it just needs to be used

ii. Forget about this test altogether
Propably not a good idea

iii. Do it with Perl5 and Inline::C
This would force people to install Inline::C, or worse having it in the Parrot distribution.


iv. Have a small test program written in C
This would propably be easy to implement, it just adds to the overall complexity of Parrot.


v. Parrot provides a catalogue of error messages
How about a PMC, perhaps a read only PerlHash, that maps error messages to error numbers?
This would also be nice for I18N.


When there is consensus on what to do, then I would be willing to try to make it work.


CU, Bernhard


Adam


-----Original Message-----
From: Leopold Toetsch [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 5:19 AM
To: Jens Rieks
Cc: [EMAIL PROTECTED]
Subject: Re: cvs commit: parrot/imcc/t/syn file.t


Jens Rieks <[EMAIL PROTECTED]> wrote:



The test has to be located inside the eval, this construct

has no effect.


Might it be better to set LANG to 'C', instead of 'en'?

Thanks, applied. leo






--
**************************************************
Bernhard Schmalhofer
Senior Developer
Biomax Informatics AG
Lochhamer Str. 11
82152 Martinsried, Germany
Tel: +49 89 895574-839
Fax: +49 89 895574-825
eMail: [EMAIL PROTECTED]
Website: www.biomax.com
**************************************************



Reply via email to