Bug 366588 - Find in Files displays text in cp1251 encoding incorrectly
Summary: Find in Files displays text in cp1251 encoding incorrectly
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: grepview (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-10 14:12 UTC by Alexander Potashev
Modified: 2017-09-16 14:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2016-08-10 14:12:45 UTC
Find in Files displays text in cp1251 encoding incorrectly.

Reproducible: Always

Steps to Reproduce:
1. Open a source code file with comments in Russian encoded in cp1251. Note that the KDevelop editor autodetects the encoding and displays Russian letters correctly.
2. Open grepview and search for a string that would match lines with Russian text.

Actual Results:  
The occurrences cited in grepview are not displayed correctly, instead I see character "placeholders" in a form of question marks. When I hover an occurrence in grepview, the tooltip also displays "question marks".

Expected Results:  
Russian text displayed correctly in grepview.
Comment 1 Anton Anikin 2016-10-07 07:49:05 UTC
I test your case and all works as expected - Russian (cp1251) strings displayed correctly. I tested current master branch.
Comment 2 Kevin Funk 2017-01-09 09:25:05 UTC
@Alexander: Still a problem for you?
Comment 3 Alexander Potashev 2017-09-16 14:16:40 UTC
Works for me now in KDevelop build from Git master (5.1.40, commit 825adb1eef8b3a2851d0e4cfe04495bd8a2872d7).