Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issue where rg.el couldn't search Unicode.
The reason of rg.el wasn't able to search Unicode character on Windows is because at the moment NTEmacs limits non-ASCII file arguments to the current codepage. See https://github.com/emacs-mirror/emacs/blob/58a7b99823c5c42161e9acf2abf6c22afd4da4cd/src/w32.c#L1648. This patch provides a workaround: Instead of passing Unicode arguments to ripgrep via Emacs, it via a temp .bat script, which was generated whenever `rg-build-command`. This allows rg.el now to search the entire Unicode planes, rather than being restricted to a specific codepage. P.s. This feature is disabled by default for keeping old behavior, enable it via set rg-w32-unicode = t.
- Loading branch information