| Summary: | kwrite does not apply per-directory setting for encoding from .kateconfig properly | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | H.H. <cyberbeat> |
| Component: | encoding | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Unspecified | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
H.H.
2009-08-03 18:15:43 UTC
would be nice to get feedback, because I often save my files from different projects in wrong encoding by mistake, and I don't know any alternative to solve this problem. per-folder config seems to be a unique but really usable feature, if it would work. does someone read this? this is a really serious bug.. I had a look into kate sourcecode. In katedocument.cpp readconfig() is called after loading the file, but the for the encoding to be set, the file has to be reloaded? I don't know if I get fixed this by myself.. I have patched the function "openfile()" in katedocument.cpp to call "readconfig()" before loading the file. I think it shouldn't matter if we read the config file even, if the load does not succeed, or am I wrong? Seems to work so far. // read dir config (if possible and wanted) readDirConfig (); // do we have success ? bool success = m_buffer->openFile (m_file); my workaround is not the optimal solution, because now, if kate finds a config-file, I cannot change the encoding manually afterwards for files in that directories, but for me it's still better as before. *** This bug has been marked as a duplicate of bug 125974 *** |