Re: One failing unit test (iconv_read) on git master on OS X
Marc Abramowitz <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CE5B2C5B.1FB3B%[email protected]> |
On 9/15/13 2:08 AM, "Marc Abramowitz" <[email protected]> wrote: >>Output is: > >``` >marca@marca-mac:~/dev/git-repos/freetds$ src/tds/unittests/iconv_fread >log.c:194:Starting log file for FreeTDS 0.92.dev.20130718 > on 2013-09-15 02:03:33 with debug flags 0x4fff. >stream.c:108:Error: read_and_convert: tds_iconv returned errno 7 >stream.c:110:Error: read_and_convert: Gave up converting 3054 bytes due to >error 7. >stream.c:113:Troublesome bytes: >... > >``` Is the test is trying to do the same as this? marca@marca-mac:~/dev/git-repos/freetds$ head -c 4078 src/tds/unittests/iconv_fread.out | iconv -f UTF-8 -t ISO-8859-1 | wc -c 4077 marca@marca-mac:~/dev/git-repos/freetds$ head -c 4078 src/tds/unittests/iconv_fread.out | iconv -f UTF-8 -t ISO-8859-1 | hexdump -C 00000000 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 |aaaaaaaaaaaaaaaa| * 00000fe0 61 61 61 61 61 61 61 61 61 61 61 61 90 |aaaaaaaaaaaa.| 00000fed Is it basically to test that the sequence 0xC290 (UTF-8 for U+0090 control character) is converted to 0x90 in ISO-8859-1? It's curious that tds_iconv seems to fail (with errno 7 - what's that?) when it's only 1024 bytes into the string; still in the middle of all the 'a' characters; it hasn't gotten to the special character yet it seems. Marc