Re: How popt auto doc process text with newline fine?

2012-12-24 Thread Jeffrey Johnson
On Dec 24, 2012, at 8:34 PM, zzs zzs...@126.com wrote: Auto document in popt is very good. But when I want the document of a option have serval paragraphs It output bad things. My option define like this: { .longName = fre, .shortName = '\0', .descrip=

Re: Memory leak with poptGetNextOpt

2013-05-03 Thread Jeffrey Johnson
On May 2, 2013, at 5:56 PM, Karl Lindén wrote: Hello! I am memory checking a program using the popt library but it seems as there is some kind of memory leak in poptGetNextOpt. I have written a small test program to show the issue. The program will basically just take an integer argument

Re: man page does not document whether dynamically allocated memory has to be freed

2013-11-24 Thread Jeffrey Johnson
The problem cannot be documented for POPT_ARG_ARGV because the behavior is dependent on how POPT is built. Traditionally (to minimize memory fragmentation), an ARGV array was allocated in one continuous memory chunk so that a single free released both the array and all the strings. Depending on

Re: popt has problems with unicode characters

2013-11-24 Thread Jeffrey Johnson
Are you entering unicode directly into popt table strings? If so, then use gettext(3) and a N_(...) wrapper. There are still issues with unicode and alignment: popt does not use wide characters (which were largely non-existent outside of M$ when popt was written). The remaining issues cannot be

Re: Release?

2014-08-26 Thread Jeffrey Johnson
On Aug 26, 2014, at 6:28 AM, Jeffrey Johnson n3...@me.com wrote: http://yum.jbj.org/pub/centos6/SRPMS.i386/popt-1.17-1.src.rpm http://yum.jbj.org/pub/centos6/SRPMS.i386/popt-1.17-1.src.rpm typo (centos-6, not centos6) http://yum.jbj.org/pub/centos-6/SRPMS.i386/popt-1.17-1.src.rpm

Re: Release?

2014-08-26 Thread Jeffrey Johnson
On Aug 25, 2014, at 9:51 PM, Benedikt Morbach benedikt.morb...@googlemail.com wrote: Hello list, would it be possible to cut a new popt release to make life for downstream distributions a little bit easier? Here is popt-1.17 staged for release:

Re: popt windows build and vsnprintf

2016-10-20 Thread Jeffrey Johnson
> On Oct 20, 2016, at 10:48 AM, Alex Kashchenko wrote: > > Hi, > > I was building popt-1.13 for windows, it does not work out of the box, but > fixes are straightforward except the following one: > > diff --git a/src/poptint.c b/src/poptint.c > index e99d28b..1b5fd9f