← Back to team overview

kicad-developers team mailing list archive

Patch: fix string formatting in ThrowIOError

 

Hi,
Since the current implementation of formatting IO errors is not
working platform independently (see mail thread 'Bug: ThrowIOError
with GetChars() formatting parameter'), replaced these calls
with the working wxString::Format().

Commit message:
   o Replace questionable wxString::PrintfV() call (which doesn't work
     reliably on different platforms) with wxString::Format()
   o Extra win: due to use now of the THROW_IO_ERROR() macro, error messages
     contain line numbers.

Patch:
https://github.com/KiCad/kicad-source-mirror/compare/master...hzeller:avoid-wxstring-printfv.diff

Cheers,
  Henner.


Follow ups