Skip to content

Problem on reading machines.txt #29

@hb9tuh

Description

@hb9tuh

It's seems the default file machines.txt on heekscnc 0.18 (git) as 3 first characters to indicate UTF8 encoding (BOM) but read process do not use this information on linux (debian sid). With this problem the first machine as wrong name (begin with BOM characters) and python script is not generate with right machine module import line.

file nc/machines.txt

nc/machines.txt: UTF-8 Unicode (with BOM) text

head -n 2 nc/machines.txt |hexdump -C
00000000 ef bb bf 65 6d 63 32 20 4c 69 6e 75 78 43 4e 43 |...emc2 LinuxCNC|
00000010 20 77 69 74 68 20 74 6f 6f 6c 20 6f 66 66 73 65 | with tool offse|
00000020 74 73 20 30 0a 65 6d 63 32 62 20 4c 69 6e 75 78 |ts 0.emc2b Linux|
00000030 43 4e 43 20 30 0a |CNC 0.|

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions