octave-maintainers
[Top][All Lists]
Advanced

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

Re: [generate_html] Encoding of NEWS file


From: Julien Bect
Subject: Re: [generate_html] Encoding of NEWS file
Date: Sun, 18 Jan 2015 17:38:52 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

*** Please keep the mailing list in cc ***

Le 18/01/2015 13:46, Oliver Heimlich a écrit :
Hello Julien,

Issue #2: generate_package_html() does not honor the "charset=utf-8" in
the output of makeinfo

I think this is a bug: generate_package_html() should honor whichever
encoding comes out of makeinfo.

I will fix this in the generate_html package.

I have found another bug that you could fix as well.

In line 533 of generate_package_html.m, where the contents of the COPYING.html file are written, please use the insert_char_entities function:
    fprintf (fid, "<pre>%s</pre>\n\n", contents);

The current version does not escape html special characters, which is problematic. The GPLv3 text contains several "<" and ">" characters.

The section where the NEWS file is written already does it right:
fprintf (fid, "<pre>%s</pre>\n\n", insert_char_entities (news_content));

Yes, I will fix that too.



reply via email to

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