Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on reading machines.txt #29

Open
hb9tuh opened this issue Jan 6, 2014 · 0 comments
Open

Problem on reading machines.txt #29

hb9tuh opened this issue Jan 6, 2014 · 0 comments

Comments

@hb9tuh
Copy link

hb9tuh commented Jan 6, 2014

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.|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant