New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Win32 - Can't connect database placed in a directory with Japanese characters [CORE2172] #2603
Comments
Modified by: Sean Leyne (seanleyne)status: Open [ 1 ] => Resolved [ 5 ] resolution: Duplicate [ 3 ] |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Commented by: @asfernandes I'm reopening this case, because it may be fixed only when we use the Windows Wide API functions. |
Modified by: @asfernandes |
Commented by: @aafemt This issue is not limited to Japanese characters but appear on any path or file name containing symbols from outside of current ANSI code page. And using CreateFileW() indeed is necessary to solve it on Windows. On Linux fopen accepts utf-8 encoded string. |
Commented by: @asfernandes It depends on Windows ANSI codepage. If it's UTF-8, and using the new utf8-dpb, it should work. |
Commented by: @aafemt UTF-8 cannot be set as ANSI codepage in Windows. |
Submitted by: James Ang (jang)
Duplicates CORE316
Is duplicated by CORE3172
Relate to CORE4993
Votes: 5
The Firebird FDB is placed in this folder:
C:\日本語フォルダ\Data\
Hence the full path to the FDB is:
C:\日本語フォルダ\Data\FIREBIRDSUPERSERVERALIAS.FDB
Calls to isc_attach_database() will fail with something like "Unspecified database name".
I reproduced this issue on my development environment (Windows XP Professional SP3 (US English locale)), but the problem was found while testing on a Japanese OS.
I can also reproduce the problem with an FDB named: 日本語フォルダ.FDB placed in C:\
C:\日本語フォルダ.FDB
It was very easy to reproduce the problem.
The workaround is to ensure that the full path to the FDB does not contain non-ASCII characters especially Unicode characters.
This problem was found in the versions of Firebird I tested (specified in this bug report else where).
The text was updated successfully, but these errors were encountered: