Bug 366588

Summary: Find in Files displays text in cp1251 encoding incorrectly
Product: [Developer tools] kdevplatform Reporter: Alexander Potashev <aspotashev>
Component: grepviewAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: normal CC: anton
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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).