dbf header not support internationalization
-------------------------------------------

                 Key: GEOT-1785
                 URL: http://jira.codehaus.org/browse/GEOT-1785
             Project: GeoTools
          Issue Type: Bug
          Components: data shapefile
    Affects Versions: 2.5-M0
         Environment: Windows XP 5.1.2600 Service Pack 2 Build 2600, java 
version "1.5.0_15", x86 Family 6 Model 13 Stepping 6 GenuineIntel ~1188 Mhz
            Reporter: You Yun Hua
            Assignee: Jesse Eichar
            Priority: Critical
         Attachments: DbaseFileHeader.java

Bug brief discription:
When modify or add data to a shapefile whose dbf header records include 
internationalization chars such as Chinese, the dbf file will be crashed. 

Cause:
force cast char to byte

Position:
lines 587-589 of 
...\modules\plugin\shapefile\src\main\java\org\geotools\data\shapefile\dbf\DbaseFileHeader.java

Solution:
getBytes of char first, then write byte

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to