Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.16k stars 303 forks source link

Different background color due to file encoding chosen in Komodo Edit 11 #3701

Open StefanGitHuber opened 5 years ago

StefanGitHuber commented 5 years ago

Short Summary

Background color changes with the chosen file encoding of Komodo Edit.

Steps to Reproduce

Open example file ASVspoof2019_baseline_CM.m. (BTW, could be also a .py Python file). Since I set globally any file encoding to my preferred UTF-8, it opens as UTF-8. And Komodo Edit recognizes it as Matlab.

Problem, it changes my common background color. Please see picture, background is too light "2019-02-26 Matlab in UTF8 different background color.png". 2019-02-26 matlab in utf8 different background color

Selecting then ASCII (menu to the right bottom for file encoding, to the left of file type Matlab) changes the background color to my common setting. Please see picture "2019-02-26 Matlab in ASCII same background color.png". 2019-02-26 matlab in ascii same background color

Expected results

It should not change the background color no matter which file encoding chosen.

Actual results

It does change the background color according to the chosen file encoding.

Platform Information

Komodo Edit or IDE? Komodo Edit 11.0

Komodo Version? Komodo Edit 11.0

Operating System (and version)? Reproducable on two OS versions: Ubuntu 16.04 TLS Linux Mint 19.1 Tessa Cinnamon

Additional Information

Please inspect my color scheme daylight-180926.ksf.txt (added the .txt extension so I can upload). daylight-180926.ksf.txt

Further problem: Please note that the Linux tool 'file' tells the Matlab file is encoded as ASCII: file -i ASVspoof2019_baseline_CM.m ASVspoof2019_baseline_CM.m: text/plain; charset=us-ascii

However, when I have selected UTF-8 in Komodo and save the file, the file is still recognized as the same us-ascii as before. Komodo Edit 11.0 does not change the file encoding on both Linux System

Good luck to all of us :)

th3coop commented 5 years ago

Further problem: Please note that the Linux tool 'file' tells the Matlab file is encoded as ASCII: file -i ASVspoof2019_baseline_CM.m ASVspoof2019_baseline_CM.m: text/plain; charset=us-ascii

This is a different bug, please file it separately.

StefanGitHuber commented 5 years ago

Hi Carey, before filing a 2nd cause different bug, I want to wait a bit on the outcome of the 1st one.

Cheers,

Am Di., 26. Feb. 2019 um 23:29 Uhr schrieb Carey Hoffman < notifications@github.com>:

Further problem: Please note that the Linux tool 'file' tells the Matlab file is encoded as ASCII: file -i ASVspoof2019_baseline_CM.m ASVspoof2019_baseline_CM.m: text/plain; charset=us-ascii

This is a different bug, please file it separately.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Komodo/KomodoEdit/issues/3701#issuecomment-467640702, or mute the thread https://github.com/notifications/unsubscribe-auth/Atzro9l2-gifZxl693Vr3n036W8vycCrks5vRbU5gaJpZM4bTG8v .

th3coop commented 5 years ago

@SubiHubi that's a great way to have a bug lost into the ether ;) but up to you. FYI, when you "reply" to a git notification it dumps the entier email body into your response. It's better to open the ticket in your browser from the email. Though they say it's supported, they do a very poor job of handling email replies to tickets.