version of Sedna - 3.3.55
operating system version - Windows 5.1.2600 (SP3.0) x86
When trying to create a database under path with 2 bytes characters, I got the ERROR SE4211.
2 bytes characters means Chinese or Japanese characters. Command lines :
E:\publish\版本发布\sedna\bin>se_gov
GOVERNOR has been started in the background mode
E:\publish\版本发布\sedna\bin>se_cdb aaa
Creating a data base (it can take a few minutes)...
SEDNA Message: ERROR SE4211
Failed to create the database
Details: aaa
Cannot complete cleanup. Please stop Sedna and remove the following:
file - /cfg/aaa_cfg.xml
folder - /data/aaa_files
Sorry for inconvenience.
E:\publish\版本发布\sedna\bin>
Hi Chun,
This is a known limitation of Sedna. For the moment the only workaround is to use ASCII chars in path.
Technical comments for developers for further work on this issue:
On windows seems we have to define UNICODE (see MSND, Conventions for Function Prototypes) and use wchar* for all system calls. Everywhere we need we should translate Sedna's UTF-8 strings (like SEDNA_DATA) -> wchar and backward.
On windows we should also explicitly use _wfopen instead of fopen, etc ...
On Linux there is no "wfopen()" (just plain old "fopen()" will suffice), but there are Unicode equivalents for each of the file read and write APIs. Should we use them?
We should also check other supported platforms - OS X, Solaris, BSD.
As a temporary fix probably we may raise some exception on se_gov if there are non ASCII chars?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I have received a similar error after installing via binaries on Mac OS 10.6.4.
Upon issuing the following command: se_cdb xxx
...
SEDNA Message: ERROR SE4040
Can't create file
Details: database configuration file
Cannot complete cleanup. Please stop Sedna and remove the following:
file - /cfg/xxx_cfg.xml
folder - /data/xxx_files
Sorry for inconvenience.
I have executed chown on data and cfg directories. Should I build from source?
Thanks,
Lance
Lance, why do you think that your problem is the same? Please contact us on sedna@ispras.ru or sedna discussion list. We'll try to help you.
Diff: