-
Notifications
You must be signed in to change notification settings - Fork 132
umlaut in directory path throws error #406
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
Comments
Hi, This path canonicalization function could be useful to you. This is a windows specific bug. |
This is already used internally by objectbox, see
We believe, that the problem lies within the objectbox-c library. The directory path is encoded in utf8 to transfer it to the ffi libraries and there then decoded again. Somewhere along this path, we believe there is a bug, that prevents umlauts from being interpreted correctly, when setting up the store. |
Thank you for the stellar bug report! I could reproduce this on Windows 10 as well. Side note: the canonicalize above is only used on the Dart side to track open directories. It's not used on the path passed to the C library. |
This is fixed internally; after a review, we hope to release a new version beginning next week. |
The fix is now available as part of the |
using a path with umlauts (
ä
,ü
,ö
) for thedirectory
argument ofopenStore
throws an error. It attempts to create a different directory / umlauts are replaced with other characters.Why is this relevant?
The application support directory includes the user name. The user name in Windows can include umlauts. The application support directory is the prefered location for such files, i.e. databases like objectbox. Other directories often include the user directory as a part. Therefore, this issue is quite a severe one for Windows support.
Basic info (please complete the following information):
Steps to reproduce
Expected behavior
.../testäüö/objectbox
Current behavior
Code
main.dart
objectbox/objectbox_service.dart
The text was updated successfully, but these errors were encountered: