Opened 14 years ago

Closed 14 years ago

#711 closed defect (fixed)

SQLite: Handle file names with Unicode length 250 & Asian chars

Reported by: romicadascalescu Owned by: romicadascalescu
Priority: minor Milestone: 3.6.0
Component: SQLite Provider Version: 3.6.0
Severity: 3 Keywords:
Cc: External ID:

Description

  • 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.

Change History (1)

comment:1 by romicadascalescu, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.