testfailures on WIP-pyshapelib-Unicode branch (was: merging back the new pyshapelib)

Bernhard Reiter bernhard at intevation.de
Fri Jan 4 14:54:56 CET 2008


On Friday 04 January 2008 12:07, Bram de Greve wrote:
> ======================================================================
> FAIL: test_load_1_0.TestNonAsciiColumnName.test
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "D:\bram\thuban_work\WIP-pyshapelib-Unicode\thuban\test\test_load_1_0.py" ,
> line 297, in test
>     self.fail("Cannot load file with non-ascii column names")
> AssertionError: Cannot load file with non-ascii column names
>
>
>
> This is about the column name Fläche. It gets into dbflib correctly,
> dbflib returns it correctly, but then when it is written to the XML for
> testing, it is not UTF-8 encoded to
> 'Fl\xc3\xa4che'. Instead it is written as Fläche, failing the test.
> Might it be caused by the fact that dbflib is now set to return unicode
> strings?

Maybe something else needs a change, it possibly is related to this area.

-- 
Managing Director - Owner: www.intevation.net       (Free Software Company)
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20080104/d8f13869/attachment.bin


More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)