You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have successfully compiled the project on Windows. When decoding, a single QR code image parses without issues, but when there are multiple QR codes, the decoded files open as garbled text. What could be causing this? Thank you.
#122
Open
fighter-01 opened this issue
Mar 21, 2025
· 5 comments
Under Windows, I made the following modifications to the cimbar class. After the changes, it can generate files, but the generated files contain garbled text:
cpp
vector infiles;
if (result.count("in")) {
for (const auto& pattern : result["in"].as<vector>()) {
auto expanded = expand_wildcard(pattern);
infiles.insert(infiles.end(), expanded.begin(), expanded.end());
}
}
Do you have any good suggestions for troubleshooting the issue? When executing the command ./cimbar wht*.png, no errors are printed.
It's probably worth noting that the instructions are written with unix (linux, mac, cygwin/wsl) path expansion in mind. So when we say:
./cimbar outputprefix*.png -o ./
... what that looks like to the binary will be ./cimbar outputprefix_1.png outputprefix_2.png outputprefix_3.png -o ./ (for however many png files there are).
So one idea would be to try the expansion manually and see if that works. Another would be to use a terminal client that does it. I'm somewhat hesitant to add wildcard expansion inside the executable, since no other platform besides windows uses it -- but we can consider it.
edit: that said, there are all sorts of other things that might be going wrong after this. That the decode succeeds but produces garbled output is strange. That suggests there's some windows-specific bug/issue in the decoding logic
No description provided.
The text was updated successfully, but these errors were encountered: