[illumos-Developer] Webrev for bug 844: m4 should say something useful...

Gary Mills mills at cc.umanitoba.ca
Sat Apr 2 12:56:59 PDT 2011


This is for illumos bug 844: m4 should say something useful about
_why_ an include()d file can't be opened.  My webrev is at:

    http://cr.illumos.org/view/xrxhr09h/illumos844

This is my test file:

    $ cat sample.m4
    define(filename, `foobar.m4')dnl
    include(filename)dnl

This is the original behavior, with OI 148:

    $ m4 sample.m4
    
    m4:sample.m4:1 can't open file
    include(foobar.m4)
    $ env LC_MESSAGES=fr_CA.UTF-8 m4 sample.m4
    
    m4:sample.m4:1 impossible d'ouvrir le fichier
    include(foobar.m4)

Here it is after my changes:

    $ usr/src/cmd/sgs/m4/i386/m4 sample.m4                         
    
    usr/src/cmd/sgs/m4/i386/m4:sample.m4:2 cannot open file, reason: No such file or directory
    include(foobar.m4)
    $ rc/cmd/sgs/m4/i386/m4 sample.m4                             <
    
    usr/src/cmd/sgs/m4/i386/m4:sample.m4:2 cannot open file, reason: Ce fichier ou ce répertoire n'existe pas
    include(foobar.m4)

Obviously the first phrase is not translated.  How do we correct that?

-- 
-Gary Mills-        -Unix Group-        -Computer and Network Services-



More information about the Developer mailing list