EtteGit / EnragedRabbitProject

GNU General Public License v3.0
2.38k stars 338 forks source link

Strip Unicode byte order marker from head of ercf_software.cfg #98

Closed GarthSnyder closed 2 years ago

GarthSnyder commented 2 years ago

As of commit eeabbf4 on 2022-03-22, ercf_software.cfg seems to have picked up a Unicode byte order marker sequence at the beginning of the file (0xEF 0xBB 0xBF).

For some reason, this sequence is confusing Klipper on my system:

File contains no section headers.
file: /home/pi/VoronConfig/klipper/ercf_software.cfg, line: 1
'\xef\xbb\xbf\n'

I'm guessing that it's not having this effect for everyone. Maybe it has something to do with my specific configuration or with being on a Raspberry Pi 4 or a Bullseye system. In any event, I don't think the BOM code is needed. This PR strips it.