apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59756] New: testxlate UTF7 conversion test failures
Date Mon, 27 Jun 2016 01:20:53 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59756

            Bug ID: 59756
           Summary: testxlate UTF7 conversion test failures
           Product: APR
           Version: 1.5.3
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
          Assignee: bugs@apr.apache.org
          Reporter: luke1410@gmx.de

Created attachment 33990
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33990&action=edit
testxlate.c fix for test failure and added UTF-7 test

There seem to be 2 independent issues with the testxlate UTF-7 tests.
These were already brought up in 2015 by Thorsten Schöning on the mailing list:
http://www.mail-archive.com/dev%40apr.apache.org/msg26274.html

1. The conversion test from UTF-8 to UTF-7 fails.
The generated UTF-7 output is "Edelwei+AN8". As far as my understanding of the
UTF-7 RFC (https://www.ietf.org/rfc/rfc2152.txt) goes, this seems to be a
correct conversion. Hence, the test is "incorrect" here and causes a false
positive failure.

2. The conversion from UTF-7 to UTF-8 fails.
Converting Edelwei+AN8- to UTF-8 seems to produce an incorrect result. Thorsten
already provided an analysis of the issue (I didn't completely verify it, but
it seemed sound).

The attached patch fixes issue 1 by changing the test expectation.
It also adds another test for the UTF-7 to UTF-8 conversion to keep the
previous test case.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message