{"action":"opened","issue":{"url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/164","labels_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/164/comments","events_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/164/events","html_url":"https://github.com/marekr/kicad-issue-test/issues/164","id":120584828,"number":164,"title":"Incorrect Gerber file generated by recent pcbnew revisions","user":{"login":"marekr","id":1838013,"avatar_url":"https://avatars.githubusercontent.com/u/1838013?v=3","gravatar_id":"","url":"https://api.github.com/users/marekr","html_url":"https://github.com/marekr","followers_url":"https://api.github.com/users/marekr/followers","following_url":"https://api.github.com/users/marekr/following{/other_user}","gists_url":"https://api.github.com/users/marekr/gists{/gist_id}","starred_url":"https://api.github.com/users/marekr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekr/subscriptions","organizations_url":"https://api.github.com/users/marekr/orgs","repos_url":"https://api.github.com/users/marekr/repos","events_url":"https://api.github.com/users/marekr/events{/privacy}","received_events_url":"https://api.github.com/users/marekr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/gerber","name":"gerber","color":"ededed"},{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/High","name":"High","color":"ffdddd"},{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/pcbnew","name":"pcbnew","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-05T20:19:13Z","updated_at":"2015-12-05T20:19:13Z","closed_at":null,"body":"Hi, I got recently my gerbers rejected by the PCB vendor thanks to the first line being  corrupted. The first line used to look like:\n\n%TF.FileFunction,Soldermask,Bot*%\n%FSLAX46Y46*%\nG04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*\nG04 Created by KiCad (PCBNEW (2015-03-23 BZR 5531)-product) date 26.3.2015 15:56:03*\n\nThis worked well and was accepted by PCB vendors. Recently the initial line changed to:\n\nG04 #@! TF.FileFunction,Soldermask,Bot*\n%FSLAX46Y46*%\nG04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*\nG04 Created by KiCad (PCBNEW (2015-08-05 BZR 6054)-product) date 6.8.2015 11:17:12*\n\nAnd this is apparently invalid. Unfortunately I do not know when this invalid behavior was introduced.\n\nApplication: kicad\nVersion: (2015-08-05 BZR 6054)-product release build\nwxWidgets: Version 3.0.0 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.8.2,wx containers,compatible with 2.8)\nPlatform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW\nBoost version: 1.54.0\n         USE_WX_GRAPHICS_CONTEXT=OFF\n         USE_WX_OVERLAY=OFF\n         KICAD_SCRIPTING=ON\n         KICAD_SCRIPTING_MODULES=ON\n         KICAD_SCRIPTING_WXPYTHON=ON\n         USE_FP_LIB_TABLE=HARD_CODED_ON\n         BUILD_GITHUB_PLUGIN=ON\n\nThank you for improving KiCad!"}}