[Privoxy-devel] privoxy debian patches

Lee ler762 at gmail.com
Fri Oct 12 20:53:50 UTC 2018


On 10/10/18, Lee <ler762 at gmail.com> wrote:
> On 10/9/18, Roland Rosenfeld <roland at spinnaker.de> wrote:
>> Hi Lee!
>
> Hi Roland!  Thanks for the response
>
>> On Sa, 06 Okt 2018, Lee wrote:
>>
>>> Can you give me an example of what
>>>
>>> https://sources.debian.org/patches/privoxy/3.0.26-6/06_8bit_manual.patch/
>>> is supposed to fix?
>>
>> This is an old patch from 2004.  The problem there was that ©
>> HTML tag was converted to an 8bit character, which wasn't intended.
>> The patch fixed this issue in 2004 and I have to admit, that I didn't
>> check whether it is still necessary...
>> See https://bugs.debian.org/203697 for the complete discussion...
>>
>>> I just tried building the privoxy docs with & without the patch and I
>>> don't see the difference.
>>
>> So it may no longer be necessary, at least on your system :-)
>
> Which is not all that reassuring.  Along with "© converted to
> 8bit char" type things seem to still be happening:
>
> Lee at i3668 /source/privoxy/privoxy/doc/source
> $ file *sgml | grep -v ASCII
> p-authors.sgml:        exported SGML document, ISO-8859 text
>
> Lee at i3668 /source/privoxy/privoxy/doc/webserver/user-manual
> $ file *html |grep -v ASCII
> configuration.html: HTML document, ISO-8859 text
> copyright.html:     HTML document, ISO-8859 text
> index.html:         HTML document, ISO-8859 text
> quickstart.html:    HTML document, ISO-8859 text
>
> I'm guessing that if everything was utf8 there wouldn't be as many
> opportunities for things to break (in a locale specific way?)
>
> That sounds like an interesting project; see if I can get everything
> handled as utf8

If I edit
  /usr/share/sgml/docbook/xsl-stylesheets/html/profile-docbook.xsl
and make this change
  <!-- xsl:output method="html" encoding="ISO-8859-1" indent="no"/ -->
  <xsl:output method="html" encoding="utf-8" indent="no"/>
docbook generates utf-8 output.  But changing the standard profile
seems like the wrong way to do it.  Maybe I could figure out how to do
a privoxy-specific profile (stylesheet? catalog?) and leave the
docbook system files alone, but that seems like a lot of work for
doubtful benefits.

Anyone know if there's a way to tell docbook to leave things like
© or   alone instead of turning them into the character they
represent when creating html output?

Thanks,
Lee


More information about the Privoxy-devel mailing list