Gerber output: fix a potential minor issue in a G04 line comment.
In gbr files only ASCII7 chars are allowed. However, in a comment line a UTF8 string is used. It should not create issues, but it is incorrect.
This commit is contained in:
parent
a55d9819bc
commit
e850a482d1
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2018 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
* Copyright (C) 2019 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 2018 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -201,8 +201,12 @@ bool GERBER_PLOTTER::StartPlot()
|
||||||
m_gerberUnitInch ? "inch" : "mm" );
|
m_gerberUnitInch ? "inch" : "mm" );
|
||||||
|
|
||||||
wxString Title = creator + wxT( " " ) + GetBuildVersion();
|
wxString Title = creator + wxT( " " ) + GetBuildVersion();
|
||||||
|
// In gerber files, ASCII7 chars only are allowed.
|
||||||
|
// So use a ISO date format (using a space as separator between date and time),
|
||||||
|
// not a localized date format
|
||||||
|
wxDateTime date = wxDateTime::Now();
|
||||||
fprintf( outputFile, "G04 Created by KiCad (%s) date %s*\n",
|
fprintf( outputFile, "G04 Created by KiCad (%s) date %s*\n",
|
||||||
TO_UTF8( Title ), TO_UTF8( DateAndTime() ) );
|
TO_UTF8( Title ), TO_UTF8( date.FormatISOCombined( ' ') ) );
|
||||||
|
|
||||||
/* Mass parameter: unit = INCHES/MM */
|
/* Mass parameter: unit = INCHES/MM */
|
||||||
if( m_gerberUnitInch )
|
if( m_gerberUnitInch )
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue