On Sat, Jul 30, 2016 at 12:28 PM, Yann Ylavic <[email protected]> wrote:
> On Sat, Jul 30, 2016 at 5:37 PM, Yann Ylavic <[email protected]> wrote:
>>
>> (I'm a bit lost on where are/aren't EBCDIC octets here).
>
> Mostly, I understand that T_HTTP_TOKEN_STOP and T_HTTP_CTRLS should be
> used with ascii chars because they come from test_isascii_equiv() (and
> due to the fact they are called from ap_getline_core(), with network
> bytes), but e.g. T_OS_ESCAPE_PATH must be used with native/EBCDIC
> chars because it uses apr_isalnum() directly.
>
> That doesn't look consistent (at that level) to me, shouldn't
> ap_getline_core() do the ap_xlate_proto_from_ascii() work (or we
> provide both ascii and ebcdic versions of
> ap_{get,scan}_http_{token,field_content}())...

There is an ifdef'ed version of ap_rgetline_core called underneath
ap_getline that does the a2e before anyone looks at the line.  That's
what allows all of the string literals
to work without having EBCDIC stuff everywhere.

-- 
Eric Covener
[email protected]

Reply via email to