-
Notifications
You must be signed in to change notification settings - Fork 41
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
Encfsctl handles nordic characters incorrectly #79
Comments
Hi @NiklasThunvik -- thanks for the bug report! Is this issue specific to encfsctl, or does it also exist in encfs? |
It seems to be specific to encfstl. Encfs behaves correctly. |
It might be as simple as adding "SetConsoleCP(65001);" to set the console to uft-8 here: https://github.com/jetwhiz/encfs4win/blob/master/encfs/encfsctl.cpp#L756 int main(int argc, char **argv) {
SetConsoleCP(65001);
encfs::init_mpool_mutex();
START_EASYLOGGINGPP(argc, argv);
encfs::initLogging(); We'll have to see how this impacts decode and encode though. Can you see if this fixes your issue? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Environment
Description
When trying to encode/decode paths with nordic characters they get mangled by encfsctl. They do work when mounting using encfs though.
Expected behavior vs. actual behavior
encfs and encfsctl should encode paths in the same way. Now they don't.
Mounted drive encodes path "/ÅÄÖ" as "3my7AtPXTpUFz6HqAn-1zESJ".
Trying to encode the same path using encfsctl returns "X6F60-PunHHH0CUQ5Onw906Z"
Using encfsctl to decode "3my7AtPXTpUFz6HqAn-1zESJ" returns "ÅÄÖ"
Using encfsctl to decode the path returned by itself "X6F60-PunHHH0CUQ5Onw906Z" returns "┼─Í"
Steps to reproduce problem
OR
Relevant logs
Attach any relevant log files that can help to debug your issue (be sure to use the -v option for verbose logs).
The text was updated successfully, but these errors were encountered: