bug-texinfo
[Top][All Lists]
Advanced

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

Re: not using OUTPUT_PERL_ENCODING to determine if _stream_encode should


From: Patrice Dumas
Subject: Re: not using OUTPUT_PERL_ENCODING to determine if _stream_encode should encode
Date: Tue, 20 Feb 2024 10:16:12 +0100

On Mon, Feb 19, 2024 at 10:45:22PM +0100, Patrice Dumas wrote:
> Another issue, maybe it would be better to reset encoding_disabled to
> leave a clean state in conversion_finalization(), do something like
> 
>   if (...) {
>     $self->{'encoding_disabled'}++;
>   }
> 
> in conversion_finalization()
>   if (...) {
>     $self->{'encoding_disabled'}--;
>   }
> 
> But it requires having a condition that is a sure marker that a string
> is returned.

Actually, simply decreasing/setting to 0 if > 0 be ok, as the call to output
or convert should not be recursive.

-- 
Pat



reply via email to

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