[GRASS-dev] Some questions about standardization

Carlos Dávila cdavilam at jemila.jazztel.es
Tue Jul 3 17:37:09 EDT 2007


>> c) How can I pass from "Unable to open the temporary file." to "Unable
>> to open temporary file <%s>"? E.g. from /display/d.text.freetype/main.c:
>>
>> tmpfile = G_tempfile();
>>        if(!(fp = fopen(tmpfile, "w")))
>>            error(_("Unable to write the temporary file"));
>>
>>     
>
> Do this:
> 	tmpfile = G_tempfile();
> 	if(!(fp = fopen(tmpfile, "w")))
> 	    error(_("Unable to write temporary file <%s>"), tempfile);
>
> --Wolf
>
>   

I have done some changes as suggested in /display/d.text, d.text.new and 
d.title ("Unable to open the temporary file." to "Unable to open 
temporary file <%s>". Despite they compile without problems for me, 
could anyone check they are right? :-\
Greetings
Carlos




More information about the grass-dev mailing list