lAdam 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.
I have added a new patch to http://rt.perl.org/rt3/Ticket/Display.html?id=25825, which somehow didn't make it to the list. The patch file_t_20040215.patch uses following strategy: i. Ask Perl5 for the platform dependent numeric value of ENOENT ii. Ask parrot for the platform dependent error message for ENOENT For doing this I added a new op in 'ops/sys.ops': + err(out STR, in INT) + + Get the system error message for the system error code $2 + and store it in $1. + This new op is implemented with 'strerror()'. Would it be nice to have a list of system error codes in 'runtime/parrot/include'? -- /* [EMAIL PROTECTED] */ GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++