[fdo-trac] #711: SQLite: Handle file names with Unicode length 250
& Asian chars
FDO
trac_fdo at osgeo.org
Thu Oct 21 13:57:26 EDT 2010
#711: SQLite: Handle file names with Unicode length 250 & Asian chars
--------------------------------+-------------------------------------------
Reporter: romicadascalescu | Owner: romicadascalescu
Type: defect | Status: new
Priority: minor | Milestone: 3.6.0
Component: SQLite Provider | Version: 3.6.0
Severity: 3 | Keywords:
External_id: |
--------------------------------+-------------------------------------------
- The issue comes from the fact there are special Unicode characters which
occupy in Unicode a character but in UTF-8 3/4 characters.
sqlite engine handle only UTF-8 strings (including file names) and inside
the
engine converts UTF-8 path to Unicode (in Windows side) but the problem is
all
buffers allocated gets allocated as maximum 260 characters. This leads to
the
fact in some cases file name gets trimmed to 260 characters failing to
open the
file.
The fix was to increase the space allocated in Windows side to 4*MAX_PATH
to be
able to handle some UTF-8 characters which occupies more than on byte.
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/711>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list