Skip to content
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

Fix/8751 unicode filename fix for windows #8782

Conversation

jNullj
Copy link
Contributor

@jNullj jNullj commented Nov 10, 2022

Fixes #8751

Screenshots

explorer_2022-11-10_18-49-00.mp4

Testing strategy

Compiled and run the application on windows.
Attempted to reproduce both #8751 and #7139 and tested both are solved.
It could be neat if i could run automated testing on github without playing with my own environment...
edit: i see you got some actions running on pull, forget about the line above.

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

FindFirstFile doesn't support unicode in file names.
Switch to FindFirstFileEx to allow unicode in db file name.

Fixes keepassxreboot#8751
Use FindFirstFileW for explicit unicode support.
Use curret types to avoid casting issues.

Fixes keepassxreboot#8751
Solve filename changes as shown in issue keepassxreboot#7139.
If filename input is not the same capitalization file extention was added to file name when saved.
This change fixes it.

Fixes keepassxreboot#8751
@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2022

Codecov Report

Base: 64.43% // Head: 64.42% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (43c0080) compared to base (3cbe4df).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8782      +/-   ##
===========================================
- Coverage    64.43%   64.42%   -0.01%     
===========================================
  Files          341      341              
  Lines        44247    44247              
===========================================
- Hits         28507    28504       -3     
- Misses       15740    15743       +3     
Impacted Files Coverage Δ
src/core/Tools.cpp 73.40% <0.00%> (-0.64%) ⬇️
src/core/Entry.cpp 82.52% <0.00%> (-0.20%) ⬇️
src/core/FileWatcher.cpp 86.75% <0.00%> (+1.20%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/main.cpp Outdated Show resolved Hide resolved
src/main.cpp Outdated Show resolved Hide resolved
Change to method obtaining absolute file path from toStdWString to utf16.
This avoids internal conversation in QString as it is stored as utf16 ushort.

Fixes keepassxreboot#8751
@phoerious phoerious merged commit afc7dcd into keepassxreboot:develop Nov 11, 2022
pull bot pushed a commit to shonker/keepassxc that referenced this pull request Nov 11, 2022
pull bot pushed a commit to tigerwill90/keepassxc that referenced this pull request Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot open filenames with special characters on Windows
4 participants