• Show log

    Commit

  • Hash : 98840d40
    Author : Nick Wellnhofer
    Date : 2023-03-21T19:07:12

    parser: Rework EBCDIC code page detection
    
    To detect EBCDIC code pages, we used to switch the encoding twice and
    had to be very careful not to decode data after the XML declaration
    before the second switch. This relied on a hard-coded expected size of
    the XML declaration and was complicated and unreliable.
    
    Now we convert the first 200 bytes to EBCDIC-US and parse the encoding
    declaration manually.