-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: model path encoding in windows #2086
Merged
ggerganov
merged 3 commits into
ggerganov:master
from
thewh1teagle:fix/model-path-encoding
May 14, 2024
Merged
fix: model path encoding in windows #2086
ggerganov
merged 3 commits into
ggerganov:master
from
thewh1teagle:fix/model-path-encoding
May 14, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ggerganov
approved these changes
Apr 24, 2024
The |
Maybe we can use _MSC_VER instead of _WIN32 here because wide string in ifstream is MSVC extension. _WIN32 affects all compilers including gcc and llvm. |
Fixed in ab7263c |
bygreencn
added a commit
to bygreencn/whisper.cpp
that referenced
this pull request
May 14, 2024
* ggerganov/master: (291 commits) whisper : fix model path encoding in windows (ggerganov#2086) server : return utf-8 (ggerganov#2138) node : add audio_ctx and audio buffer params (ggerganov#2123) cmake : fix HIP/ROCm build (ggerganov#2102) node : add additional params (ggerganov#2000) js : remove un-needed request header from fetchRemote (ggerganov#2119) cmake : fix metal embed sources path (ggerganov#2110) main : dont print timings with --no-prints (ggerganov#2108) main : add options for temperature control (ggerganov#2088) whisper : switch back to F32 mask (#0) whisper.android : update example, add field to print timestamp (ggerganov#2072) cmake : fix json INTERFACE library (ggerganov#2069) main : fix double quote escaping in csv output (ggerganov#2090) metal : tune soft_max number of threads (#0) whisper : remove old flash attn code (#0) ggml : try fix ppc64 (#0) ggml : remove oboslete alibi code (skipme) (#0) talk-llama : sync llama.cpp sync : ggml ggml : optimize for ppc64le using VSX intrinsics (ggml/784) ...
iThalay
pushed a commit
to iThalay/whisper.cpp
that referenced
this pull request
Sep 23, 2024
* fix: model path encoding in windows * fix: convert model path to wide string only for MSVC compiler
iThalay
pushed a commit
to iThalay/whisper.cpp
that referenced
this pull request
Sep 23, 2024
* fix: model path encoding in windows * fix: convert model path to wide string only for MSVC compiler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolve #2052 by using wide char.
By the way, examples/main.cpp also have problem when reading model path / wav path from
argv
inWindows
.Maybe it's due to invalid console encoding, I tried to enable
SetConsoleOutputCP(CP_UTF8)
and it didn't helped in main example.