Bug 275114 - Replace All always opens closed files in UTF8 and thus destroys other encodings
Summary: Replace All always opens closed files in UTF8 and thus destroys other encodings
Status: CONFIRMED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: grepview (show other bugs)
Version: 5.5.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 12:51 UTC by André Stein
Modified: 2020-08-10 15:18 UTC (History)
2 users (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 André Stein 2011-06-07 12:51:47 UTC
Version:           4.2.1 (using KDE 4.6.2) 
OS:                Linux

When using the replace function in the replace all plugin, the plugin destroys the encoding of my source files which are in ISO8859-1. The happens with files which aren't opened in the editor window. It seems that the plugin doesn't honor the settings from the Editor configuration (where ISO8* is configured in my code base).

Reproducible: Always

Steps to Reproduce:
1. Create file test.txt with content "Hellö World"
2. Search and replace World with some other string (don't open test.txt when String is found!)
3. Content of test.txt is now scrambled (due to umlaut ö)
Comment 1 Morten Sjoegren 2012-11-12 13:58:10 UTC
I just experienced this on Fedora 17 with KDE4.9.3 and KDevelop 4.4. 

Luckily I caught the problem before I committed, but it took me almost 10 minutes to undo it.
Comment 2 André Stein 2012-11-12 14:00:11 UTC
The problem lies somewhere in DocumentChangeSet which doesn't handle closed files correctly. I filed a bug for that one.
Comment 3 Andrew Crouthamel 2018-11-10 03:24:30 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-11-21 04:40:56 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Piotr Keplicz 2020-08-10 15:18:59 UTC
This bug still exists. My project uses ISO-8859-2 as set by .kateconfig, all the files are opened properly but the search/replace function treats all the files as UTF-8.