Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Searching in files with encoding other than UTF-8 doesn't work #1074

Closed
Susexe opened this issue Mar 14, 2019 · 3 comments
Closed

Searching in files with encoding other than UTF-8 doesn't work #1074

Susexe opened this issue Mar 14, 2019 · 3 comments

Comments

@Susexe
Copy link

Susexe commented Mar 14, 2019

When the default encoding in Core settings is changed (UTF-16 LE, in my case), it doesn't affect the "Find in Project" option. It seems UTF-8 is ingrained, considering Atom displays the files in UTF-8 first and then converts them to the preferred encoding (it can easily be seen when clicking through files from the Project pane).

@rsese
Copy link

rsese commented Mar 19, 2019

Thanks for the report @Susexe - can you fill out the issue template and provide step-by-step instructions to reproduce? If you can share a test file as well, that would be useful for us.

The information in the template is super helpful for us when triaging issues.

@Susexe
Copy link
Author

Susexe commented Mar 28, 2019

Prerequisites

Description

"Find in project" option doesn't work with other encodings.

Steps to Reproduce

  1. Open a project and click on the "Find in Project" option. Make sure File Encoding in Settings is changed appropriately.
  2. Enter a search query.

Expected behavior: It should return the results.

Actual behavior: It does not return any.

Reproduces how often: 100%

Versions

Windows 10 Home x64

Atom    : 1.35.1
Electron: 2.0.18
Chrome  : 61.0.3163.100
Node    : 8.9.3
apm  2.1.3
npm  6.2.0
node 8.9.3 x64
atom 1.35.1
python
git
visual studio

UTF-16 LE sample file is here: Sample.zip

@rsese
Copy link

rsese commented Apr 5, 2019

Ahh ok, thanks @Susexe 👍 I can reproduce with your steps and test file but I think this is close enough to a duplicate of #751 that we'll close in favor of that issue (we can always reopen this one if necessary). But I'll go ahead and copy your template details over since they're really useful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants