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(live_grep/grep_string): support non-utf8 patterns #2570

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

jamestrew
Copy link
Contributor

Description

Fixes not being able to query/use patterns that were non-UTF8 by passing the existing opts.file_encoding option to ripgrep as --encoding.

Type of change

Please delete options that are not relevant.

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

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration

  • Use live_grep and grep_string with file_encoding=latin1 and search for ç inside files with that character present

@Conni2461
Copy link
Member

i'm fine with merging this, but @brneor should test this after that feel free to merge :)

@jamestrew jamestrew merged commit ffe35cb into master Jun 21, 2023
13 checks passed
@jamestrew jamestrew deleted the fix/rg-encoding branch June 21, 2023 21:25
@brneor
Copy link

brneor commented Jun 28, 2023

Working just fine! Thank you all.

Conni2461 pushed a commit that referenced this pull request Sep 5, 2023
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.

None yet

3 participants