/[thuban]/branches/WIP-pyshapelib-bramz/libraries/pyshapelib/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/libraries/pyshapelib/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2751 by bramz, Wed Mar 28 23:30:15 2007 UTC revision 2753 by bramz, Wed Apr 11 18:57:04 2007 UTC
# Line 1  Line 1 
1    2007-04-12      Bram de Greve <[email protected]>
2    
3            * dbflibmodule.c: Expanded Unicode support to field names (formely it was
4            only available for string values in the records.  Renamed the write_field
5            function to write_attribute to be symmetric with the read_attribute
6            function that already existed.
7    
8    2007-04-11      Bram de Greve <[email protected]>
9    
10            * dbflibmodule.c, pyshapelib_common.h, setup.py: attempt to add support for
11            Unicode and Language Driver ID (LDID) support in dbflib.  Before the strings
12            are send to the underlying shapelib, they are encoded using the code page
13            specified by the database's LDID if present.  To know this LDID requires
14            some unofficial modifications to maptools' shapelib.  Backwards
15            compatibility is ensured by detecting if this field is present and setting
16            HAVE_LANGUAGE_DRIVER accordingly in setup.py.  In absence of the LDID,
17            dbflib assumes a Windows ANSI codepage (cp1252).  
18            New or modified functions/attributes of the DBFFile class:
19            - read_record(...), DBFFile.read_attribute(...): modified, now return
20              Unicode strings.
21            - write_record(...) and write_field(...): modified, now accept both regular
22              and Unicode strings but both are encoded.
23            - language_driver (read-only): new, the numerical value of the LDID
24              (exists only if HAVE_LANGUAGE_DRIVER == 1)
25            New or modified functions/constants of the dbflib module:
26            - language_driver_codec(...): added, translates a numerical LDID into the
27              string name of the Python codec used to encode/decode the strings.
28              (exists only if HAVE_LANGUAGE_DRIVER == 1)
29            - language_driver_name(...): added, translates a numerical LDID into a string
30              representing the corresponding constant.
31              (exists only if HAVE_LANGUAGE_DRIVER == 1)
32            - LDID_NOT_SET, LDID_DOS_USA, ...: constants representing language drivers.
33              (existsonly if HAVE_LANGUAGE_DRIVER == 1)
34    
35  2007-03-29      Bram de Greve <[email protected]>  2007-03-29      Bram de Greve <[email protected]>
36    
37          * shapelibmodule.c, dbflibmodule.c, pyshapelib_common.h: added support for          * shapelibmodule.c, dbflibmodule.c, pyshapelib_common.h: added support for

Legend:
Removed from v.2751  
changed lines
  Added in v.2753

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26