bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: licence text as string?


From: John Darrington
Subject: Re: licence text as string?
Date: Fri, 28 Sep 2007 09:53:58 +0800
User-agent: Mutt/1.5.13 (2006-08-11)

On Fri, Sep 28, 2007 at 12:59:09AM +0200, Bruno Haible wrote:
     Hi,
     
     John Darrington wrote:
     > Would it be possible to add a feature to the gpl-[23].0 modules which
     > provides the text of the GPL as a const char * ?
     > 
     > This would be useful for user interfaces which need to display the
     > licence text
     
     Why not reading the file at runtime? It's as simple as this:
     
     Makefile.am:
       pkgdata_DATA = COPYING
     
     *.c:
       license = read_file (PKGDATADIR "/COPYING", &length);
       if (license == NULL)
         license = "GPL";
     


This would be ok if the display system expects the '\n' characters.
But some systems expect a string and perform their own line wrapping.
In this case it would look messy.

J'
     

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]