Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread Jon Evans
I'm guessing because mingw is providing a special implementation for printf (and related functions) that supports %zu instead of linking to the old C89 one, but the GCC attribute checker is not aware of that. On Fri, Jan 3, 2020 at 12:43 PM jp charras wrote: > After some tests: > > printf("test

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread jp charras
After some tests: printf("test %zu", size_t(1) ); works, and there is no compil warning. Functions that generate a warning about %zu format are: StrPrintf() OUTPUTFORMATTER::Print() (see richio.h) they have the attribute: __attribute__ ((format (printf, 2, 3))) or __attribute__ ((format

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread jp charras
Le 03/01/2020 à 16:02, Ian McInerney a écrit : > JP, is that mingw32 directly, or was it provided by mingw-w64 > indirectly? It appears that mingw32 (the original compiler version) > doesn't have the compatibility enabled but the forked version mingw-w64 > does. (there was discussion about this on

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread Mark Roszko
wxWidgets has a interesting maze of macros to determine how to do printf on Windows. I wonder what it ends up doing. There is a special case just for MINGW32 but not MINGW64. https://github.com/wxWidgets/wxWidgets/blob/cc931612eec2e3ea49200ebff45042135f3c3f9c/include/wx/wxcrtvararg.h#L84 On

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread jp charras
Le 03/01/2020 à 15:58, Jon Evans a écrit : > So maybe it's a 32-bits vs 64-bits thing. > If you add a line like > #define __USE_MINGW_ANSI_STDIO 1 > at the top of that source file, does it work? No. I still have the compil message: warning: unknown conversion type character 'z' in format

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread Ian McInerney
JP, is that mingw32 directly, or was it provided by mingw-w64 indirectly? It appears that mingw32 (the original compiler version) doesn't have the compatibility enabled but the forked version mingw-w64 does. (there was discussion about this on the mingw users mailing list:

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread Jon Evans
So maybe it's a 32-bits vs 64-bits thing. If you add a line like #define __USE_MINGW_ANSI_STDIO 1 at the top of that source file, does it work? On Fri, Jan 3, 2020 at 9:32 AM jp charras wrote: > Le 03/01/2020 à 15:10, Jon Evans a écrit : > > I found it defined in > >

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread Jon Evans
I found it defined in C:\msys64\mingw64\include\c++\8.3.0\x86_64-w64-mingw32\bits\os_defines.h on my machine. @JP -- what platform did you use (Windows version / MSYS version / etc) where you saw the issue? On Fri, Jan 3, 2020 at 9:02 AM Seth Hillbrand wrote: > On 2020-01-02 17:19, Jon Evans

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread jp charras
Le 03/01/2020 à 15:10, Jon Evans a écrit : > I found it defined in > C:\msys64\mingw64\include\c++\8.3.0\x86_64-w64-mingw32\bits\os_defines.h > on my machine. > @JP -- what platform did you use (Windows version / MSYS version / etc) > where you saw the issue? I confirm the %zu is not working on

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread Seth Hillbrand
On 2020-01-02 17:19, Jon Evans wrote: Hi all, Context: https://gitlab.com/kicad/code/kicad/merge_requests/28#note_264910682 I have heard there are issues using "%zu" format specifier on Windows/mingw, because mingw links against a very old Windows library that does not support the C99

Re: [Kicad-developers] Printing size_t on MSW (%zu)

2020-01-03 Thread Ian McInerney
Is __USE_MINGW_ANSI_STDIO actually defined in the wxWidgets builds we use? A quick search through their codebase for that symbol only shows them testing for it and never actually defining it. -Ian On Fri, Jan 3, 2020 at 1:20 AM Jon Evans wrote: > Hi all, > > Context: >

[Kicad-developers] Printing size_t on MSW (%zu)

2020-01-02 Thread Jon Evans
Hi all, Context: https://gitlab.com/kicad/code/kicad/merge_requests/28#note_264910682 I have heard there are issues using "%zu" format specifier on Windows/mingw, because mingw links against a very old Windows library that does not support the C99 standard. I have also heard that this isn't an

Re: [Kicad-developers] Printing dangling flags

2019-04-04 Thread Wayne Stambaugh
It might be handy in debug builds to show the dangling state for development purposes but I don't see this being useful for users. On 4/4/2019 1:39 PM, Jon Evans wrote: > I bet it's an oversight.  Dangling flags are in the category of "live > ERC warnings" in my opinion, and should never be

Re: [Kicad-developers] Printing dangling flags

2019-04-04 Thread Jon Evans
I bet it's an oversight. Dangling flags are in the category of "live ERC warnings" in my opinion, and should never be printed. On Thu, Apr 4, 2019 at 1:11 PM Jeff Young wrote: > SCH_BUS_ENTRY is the only item which *prints* its dangling flags. > (Everything else only draws them on screen.) >

[Kicad-developers] Printing dangling flags

2019-04-04 Thread Jeff Young
SCH_BUS_ENTRY is the only item which prints its dangling flags. (Everything else only draws them on screen.) Is this an oversight or intentional? Thanks, Jeff.___ Mailing list: https://launchpad.net/~kicad-developers Post to :

Re: [Kicad-developers] Printing broken again?

2015-04-29 Thread Sergey A. Borshch
On 28.04.2015 16:53, jp charras wrote: Le 28/04/2015 15:43, Sergey A. Borshch a écrit : Hi everyone. Someone broke printing again. bzr rev. 5596 prints ok, while today bzr rev. 5628 print arcs in wrong direction(?). See attached screenshots. AFAIK, there is no changes in printing/drawing

Re: [Kicad-developers] Printing broken again?

2015-04-29 Thread jp charras
Le 29/04/2015 09:34, Sergey A. Borshch a écrit : On 28.04.2015 16:53, jp charras wrote: Le 28/04/2015 15:43, Sergey A. Borshch a écrit : Hi everyone. Someone broke printing again. bzr rev. 5596 prints ok, while today bzr rev. 5628 print arcs in wrong direction(?). See attached

Re: [Kicad-developers] Printing broken again?

2015-04-29 Thread Sergey A. Borshch
On 29.04.2015 11:02, jp charras wrote: Le 29/04/2015 09:34, Sergey A. Borshch a écrit : On 28.04.2015 16:53, jp charras wrote: Le 28/04/2015 15:43, Sergey A. Borshch a écrit : Hi everyone. Someone broke printing again. bzr rev. 5596 prints ok, while today bzr rev. 5628 print arcs in wrong

[Kicad-developers] Printing broken again?

2015-04-28 Thread Sergey A. Borshch
Hi everyone. Someone broke printing again. bzr rev. 5596 prints ok, while today bzr rev. 5628 print arcs in wrong direction(?). See attached screenshots. -- Regards, Sergey A. Borshchmailto: sb...@sourceforge.net SB ELDI ltd. Riga, Latvia

Re: [Kicad-developers] Printing

2015-03-27 Thread jp charras
Le 27/03/2015 12:42, Sergey A. Borshch a écrit : On 26.03.2015 15:14, jp charras wrote: Le 26/03/2015 13:36, Sergey A. Borshch a écrit : I am pretty sure this component was not build with libedit. (Arcs have bugs). Can you confirm that? No, I can't confirm yet. This component was published

Re: [Kicad-developers] Printing

2015-03-26 Thread Sergey A. Borshch
On 25.03.2015 19:35, Maciej Sumiński wrote: Hi Sergey, Thank you for the report, screenshots were very helpful. Could you try the latest revision? (5536 up) Excellent. Now it works without any visible issues. Thank You once more. -- Regards, Sergey A. Borshchmailto:

Re: [Kicad-developers] Printing

2015-03-26 Thread Sergey A. Borshch
Hi Maciej, On 25.03.2015 19:35, Maciej Sumiński wrote: Hi Sergey, Thank you for the report, screenshots were very helpful. Could you try the latest revision? (5536 up) As I wrote, printing on my schematics and pcb works great now. But one man reported that transformer from attached library

Re: [Kicad-developers] Printing

2015-03-26 Thread jp charras
Le 26/03/2015 13:36, Sergey A. Borshch a écrit : Hi Maciej, On 25.03.2015 19:35, Maciej Sumiński wrote: Hi Sergey, Thank you for the report, screenshots were very helpful. Could you try the latest revision? (5536 up) As I wrote, printing on my schematics and pcb works great now. But

Re: [Kicad-developers] Printing

2015-03-26 Thread Sergey A. Borshch
On 26.03.2015 15:14, jp charras wrote: Le 26/03/2015 13:36, Sergey A. Borshch a écrit : I am pretty sure this component was not build with libedit. (Arcs have bugs). Can you confirm that? No, I can't confirm yet. This component was published on one russian forum, but I forwarded your

Re: [Kicad-developers] Printing

2015-03-25 Thread Sergey A. Borshch
On 25.03.2015 13:02, Maciej Sumiński wrote: I have just pushed a patch that should resolve the printing issues. I did my best to test it with Windows and Linux, but it would be great if you could try it in your system too. Printing preview is quite accurate, so if you do not have a printer - it

Re: [Kicad-developers] Printing

2015-03-25 Thread Wayne Stambaugh
Orson, Thanks for looking into this. Linux users will appreciate your efforts. As far as I can tell, it didn't break anything on windows. The mirrored printing is still broken on windows with wx 3.0.2 but that has nothing to do with your changes. I have to keep a build of 3.0.1 to do mirrored

Re: [Kicad-developers] Printing

2015-03-25 Thread Vesa Solonen
25/03/15, 17:36, Wayne Stambaugh kirjoitti: to do with your changes. I have to keep a build of 3.0.1 to do mirrored printing so I can etch prototype boards. I'll test this on linux when I Even nicer for prototyping is importing the .ps or .pdf to Inkscape, do panelization and alignment,

Re: [Kicad-developers] Printing

2015-03-25 Thread Tomasz Wlostowski
On 25.03.2015 18:24, Wayne Stambaugh wrote: On 3/25/2015 12:22 PM, jp charras wrote: Le 25/03/2015 16:36, Wayne Stambaugh a écrit : Orson, Thanks for looking into this. Linux users will appreciate your efforts. As far as I can tell, it didn't break anything on windows. The mirrored

Re: [Kicad-developers] Printing

2015-03-25 Thread Maciej Sumiński
On 03/25/2015 01:40 PM, Sergey A. Borshch wrote: On 25.03.2015 13:02, Maciej Sumiński wrote: I have just pushed a patch that should resolve the printing issues. I did my best to test it with Windows and Linux, but it would be great if you could try it in your system too. Printing preview is

Re: [Kicad-developers] Printing

2015-03-25 Thread jp charras
Le 25/03/2015 16:36, Wayne Stambaugh a écrit : Orson, Thanks for looking into this. Linux users will appreciate your efforts. As far as I can tell, it didn't break anything on windows. The mirrored printing is still broken on windows with wx 3.0.2 but that has nothing to do with your

Re: [Kicad-developers] Printing

2015-03-25 Thread Wayne Stambaugh
On 3/25/2015 1:02 PM, Vesa Solonen wrote: 25/03/15, 17:36, Wayne Stambaugh kirjoitti: to do with your changes. I have to keep a build of 3.0.1 to do mirrored printing so I can etch prototype boards. I'll test this on linux when I Even nicer for prototyping is importing the .ps or .pdf to

Re: [Kicad-developers] Printing

2015-03-25 Thread jp charras
Le 25/03/2015 18:24, Wayne Stambaugh a écrit : On 3/25/2015 12:22 PM, jp charras wrote: Le 25/03/2015 16:36, Wayne Stambaugh a écrit : Orson, Thanks for looking into this. Linux users will appreciate your efforts. As far as I can tell, it didn't break anything on windows. The mirrored

[Kicad-developers] Printing

2015-03-25 Thread Maciej Sumiński
I have just pushed a patch that should resolve the printing issues. I did my best to test it with Windows and Linux, but it would be great if you could try it in your system too. Printing preview is quite accurate, so if you do not have a printer - it might be the way to check the result. It

[Kicad-developers] Printing and Ledger paper type.

2012-02-29 Thread Alexander Zakamaldin
Done. 29 февраля 2012, 19:21 от Dick Hollenbeck d...@softplc.com: On 02/29/2012 03:20 AM, Alexander Zakamaldin wrote: Hi, Dick! I am sorry in advance, but I think there is no need for you to investigate this problem. Just because I have already fixed it. The bug is deep inside

Re: [Kicad-developers] Printing and Ledger paper type.

2012-02-29 Thread Andrey A
29 февраля 2012, 20:42 от Alexander Zakamaldin zak...@mail.ru: Done. Hi, Alexander! Very good work. distr - mageia x86_64 Direct printing from kicad - OK! ___ Mailing list: https://launchpad.net/~kicad-developers Post to :

[Kicad-developers] Printing and Ledger paper type.

2012-02-29 Thread Alexander Zakamaldin
Hi! Well, we can assume the landscape printing is fixed. Another big disadvantage for wxGnomePrint users is a 72 dpi limitation. As I can see, initial workaround for this issue is done in wx 2.9.3. It should be mentioned, that this is a wxGnomePrint issue. And I think, this work must have been

Re: [Kicad-developers] Printing and Ledger paper type.

2012-02-28 Thread Dick Hollenbeck
Please explain in detail what are the symptoms of the problem. That is, how do you know it is not working. : By the way, these arguments do not apply to the current implementation of Kicad testing branch. These assumptions are significant if we are going to implement page orientation

Re: [Kicad-developers] Printing and Ledger paper type.

2012-02-28 Thread Dick Hollenbeck
Are you having problems with the margin? I see that for KICAD_GOST there is an asymmetrical margin, and a rotation of the paper without a corresponding rotation of the margins might be giving you grief. Is this what the problem is? ___ Mailing

[Kicad-developers] Printing and Ledger paper type.

2012-02-27 Thread Alexander Zakamaldin
Yes, sure. I wrote about US Ledger paper size. It should be mentioned, the US Ledger's size confuses not only me, but Gnomeprint job also. So, what is the best choice to do? 1. Assume the US Ledger is 11x17 inches size, just the same as 'Inkscape' project is doing. 2. Replace US Ledger with US

Re: [Kicad-developers] Printing and Ledger paper type.

2012-02-27 Thread Solonen Vesa
http://www.graphic-design-employment.com/tabloid-paper-dimensions.html http://www.graphic-design-employment.com/ledger-paper-dimensions.html It seems there is no portrait tabloid or landscape ledger. This paper size confusion shows a good example why well thought standard is usually a good

Re: [Kicad-developers] Printing and Ledger paper type.

2012-02-27 Thread Dick Hollenbeck
On 02/27/2012 02:50 AM, Alexander Zakamaldin wrote: Yes, sure. I wrote about US Ledger paper size. It should be mentioned, the US Ledger's size confuses not only me, but Gnomeprint job also. Please explain in detail what are the symptoms of the problem. That is how do you know it is not