Re: popt-1.13 release

2007-12-18 Thread Jeff Johnson
On Dec 15, 2007, at 7:34 PM, Robert Scheck wrote: Yes the colum spacing looks better, but whenever an umlaut (ä, ö, ü, Ä, Ö, Ü, ß) or similar should be displayed, it aborts somehow. Please note, that I can't reproduce when having LANG=C for example. Oh, and it's NOT kudzu having this

Re: popt-1.13 release

2007-12-19 Thread Jeff Johnson
On Dec 19, 2007, at 2:26 AM, Robert Scheck wrote: Moin Jeff, On Wed, 19 Dec 2007, Jeff Johnson wrote: See if the attached patch (the minimum necessary reversion to popt-1.12 afaict) fixes your linux problems. If the patch fixes the linux problems, I'll see if I can rework the Solaris

Re: popt-1.13 release

2008-01-11 Thread Jeff Johnson
On Jan 11, 2008, at 2:49 AM, Takao Fujiwara - Tokyo S/W Center wrote: Actually I'm not sure what is your problem. Which applications do you try? It seems recently some of modules, GTK, Bonobo and GNOME session, uses goption. When the application uses --help options, it includes the output

Re: Allow equal after a short option

2008-03-08 Thread Jeff Johnson
On Mar 8, 2008, at 12:02 PM, Wayne Davison wrote: I think it would be nice to allow an equal to separate a short option letter from its abutting argument. e.g. these commands using the test1 executable would all work the same: ./test1 -2 foo ./test1 -2=foo ./test1 -2foo ./test1 --arg2

Re: Any interest in eliminating sprintf(), strcpy(), and strcat()?

2008-03-08 Thread Jeff Johnson
On Mar 8, 2008, at 1:42 PM, Wayne Davison wrote: In rsync I eliminated all use of sprintf(), strcpy(), and strcat(), replacing them with snprintf(), strlcpy(), and strlcat(). Would you be interested in such changes if appropriate compatibility functions were defined? For instance, I could

Re: Allow equal after a short option

2008-03-09 Thread Jeff Johnson
On Mar 9, 2008, at 10:14 AM, Wayne Davison wrote: On Sun, Mar 09, 2008 at 12:42:37AM -0500, Jeff Johnson wrote: /bin/echo on my system is unmodified from Fedora 9 coreutils-6.10-4.fc9.i386 Interesting. So, what do you get with a manual run? /bin/echo --foo --bar /bin/echo -- --foo

popt-1.14 release

2008-04-02 Thread Jeff Johnson
I've built popt-1.14 for release in the next couple of days. The SRPM for popt-1.4 that I will be releasing is at http://wraptastic.org/pub/i386-linux/SRPMS/popt-1.14-1.src.rpm Enjoy! 73 de Jeff __ POPT Library

Permit arg units (like 100Kb), add getdate?

2008-05-01 Thread Jeff Johnson
While using popt in another program, I came across 2 usage cases that might be usefully internalized in popt. One usage case was an attempt to specify a memory limit as --memory 16777216 Adding unit scaling, e.g. --memory 16Mb --memory 16384Kb would not be hard to add using something

Named bit fields ala ancient BSD %b format

2008-05-01 Thread Jeff Johnson
While I'm thinking about popt features, here is another: The BSD kernel (iirc) devised a means to map bit files to names using a %b format. A string was used to map bit# - name. E.g. here's an example from some rpmdb code that I use for output purposes static const char * dbtFlags =

Re: Some umlaut issues in popt 1.15 (the old thing again)

2008-05-25 Thread Jeff Johnson
On May 25, 2008, at 9:19 AM, Robert Scheck wrote: Hello all, I've claimed that I can see some umlaut issues with popt 1.14 and I really would like to see it solved, now. Reproducer is for me as follows. Using popt-1.13-3 from Fedora 8, 9 or Rawhide, I simply executed the following: $

Re: Some umlaut issues in popt 1.15 (the old thing again)

2008-05-25 Thread Jeff Johnson
is not such hard as I got you - if needed for 1.14+ or so On May 25, 2008, at 6:34 PM, Jeff Johnson wrote: On May 25, 2008, at 9:19 AM, Robert Scheck wrote: Hello all, I've claimed that I can see some umlaut issues with popt 1.14 and I really would like to see it solved, now. Reproducer

Re: cross-compilation of popt 1.14 fails

2008-10-09 Thread Jeff Johnson
On Oct 9, 2008, at 2:55 PM, Paul Smith wrote: Hi all; If I try to cross-compile popt 1.14, the configure fails (I'm cross-compiling for powerpc): checking for string.h... (cached) yes checking for va_copy() function... configure: error: cannot run test program while cross

Re: [PATCH] Compile popt under Windows using gnulib

2008-10-25 Thread Jeff Johnson
(let's move this to popt-devel instead of rpm-devel) On Oct 25, 2008, at 11:42 AM, Richard W.M. Jones wrote: On Sat, Oct 25, 2008 at 11:31:49AM -0400, Jeff Johnson wrote: FYI: patches to popt-devel@rpm5.org, please. I'll take patches however they are sent however. *shrug* I can't tie builds

Fwd: Adding poptSecuritySaneFile to popt-1.15?

2008-12-19 Thread Jeff Johnson
/initialization. At the same time, I will probably add a new poptReadConfigFiles() method whose argument will be a colon separated list of configuration file paths to read. Any other opinions? 73 de Jeff Begin forwarded message: From: Jeff Johnson n3...@mac.com Date: December 18, 2008 3:15:33 PM EST

Re: Adding poptSecuritySaneFile to popt-1.15?

2008-12-19 Thread Jeff Johnson
On Dec 19, 2008, at 11:04 AM, Ralf S. Engelschall wrote: On Fri, Dec 19, 2008, Jeff Johnson wrote: (resent, dunno where the 1st message went) I don't know, never seen on the list... I kind of like the idea of using a '@' before a file path as an attention marker to increase the file

Re: Adding poptSecuritySaneFile to popt-1.15?

2008-12-19 Thread Jeff Johnson
On Dec 19, 2008, at 11:11 AM, Ralf S. Engelschall wrote: On Fri, Dec 19, 2008, Ralf S. Engelschall wrote: On Fri, Dec 19, 2008, Jeff Johnson wrote: (resent, dunno where the 1st message went) I don't know, never seen on the list... I kind of like the idea of using a '@' before a file

Re: [PATCH] added pkgconfig support for popt

2009-07-24 Thread Jeff Johnson
On Jul 24, 2009, at 11:03 AM, Ralf S. Engelschall wrote: Only true if you install POPT into standard system locations. But if I install POPT with --includedir=/usr/include/popt --libdir=/usr/lib/ popt the pkg-config file still allows me to build and link against POPT without having to know

Re: [CVS] RPM: popt/ popt.pc.in

2009-08-12 Thread Jeff Johnson
On Aug 12, 2009, at 10:47 AM, devzero2000 wrote: Sorry if i disgress, but i want take advantage of your attention. It might be useful to migrate the autofu popt to version 2 of autoconf / automake? It is something I can certainly do, if you agree. I prefer to ask first. Feel free to

Breakage with --help

2009-09-02 Thread Jeff Johnson
I just noticed this flaw while teaching FreeBSD cp(1) to use popt: LANG=C ./cp --help Usage: lt-cp [OPTION...] -H -L - P -R -a, --archive -f, --force -i, --interactive -l, --

Re: test1-55 failes on Solaris

2009-09-25 Thread Jeff Johnson
On Sep 25, 2009, at 3:34 AM, Dagobert Michelsen wrote: Hi, I am currently trying to build libpopt 1.15 on Solaris 8 with Sun Studio 11. After successfull compilation I have a failing test: I doubt that --help formatting is a serious issue in popt. Its likely a cosmetic issue. Comparing

Re: Test failure for popt 1.16

2010-05-11 Thread Jeff Johnson
On May 10, 2010, at 7:57 PM, Pieter Bowman wrote: I did builds of popt 1.16 on a number of our systems here. Test 59 failed on a number of the systems with the following output: The fix for the failure in popt-1.16 make check is likely (I have easy no easy means of testing across all the

Re: popt-1.16: patch for building on NetBSD-current

2010-06-05 Thread Jeff Johnson
On Jun 5, 2010, at 9:29 AM, Thomas Klausner wrote: Hi! Since NetBSD-5.99.11, glob_pattern_p is included in libc. The attached patch fixes the resulting compilation problem. Please include it in the next release. I'd rather see a HAVE_GLOB_PATTERN_P test in AutoFu, with all the bleary

Re: Disallowing args

2010-06-05 Thread Jeff Johnson
On Jun 5, 2010, at 12:48 PM, Wayne Davison wrote: On Sat, Jun 5, 2010 at 8:56 AM, Jeff Johnson n3...@mac.com wrote: but --foo bar returns bar in the argument list? Yes. The user may well have wanted it to be in the arg list. There's no way for the program to know that the user

Re: Disallowing args

2010-06-05 Thread Jeff Johnson
On Jun 5, 2010, at 12:42 PM, Danny Sung wrote: On 06/05/2010 8:56 AM, Jeff Johnson wrote: (aside) Anything you want to see in POPT 2.0? I'm collecting features ... Since you're collecting features... =) One thing I'd like is to extend the help/usage capability just a little. Well

Re: POPT's API has designed in memory leaks. What to do?

2010-06-07 Thread Jeff Johnson
On Jun 7, 2010, at 10:37 AM, Mark Hatle wrote: The way I've usually addressed this is to either add an option to the library that changes the default behavior from strdup to passing the address with the expectation of const. I'd rather _NOT_ go the Have it your own way! route in a

Re: Disallowing args

2010-06-17 Thread Jeff Johnson
On Jun 5, 2010, at 11:39 AM, Wayne Davison wrote: Here's something that was recently fixed for the popt that is included with rsync: rejecting an arg to an option that doesn't take an arg. Attached is a patch. A new error code, POPT_ERROR_UNWANTEDARG, was created to make the error message

POPT 2.0: another malloc issue

2010-06-17 Thread Jeff Johnson
This is another ancient (circa 1997) in POPT. The argv returned through certain interfaces ('d have to check, but the issue bites me every couple months) has everything allocated in one contiguous blob so that an experienced/lazy programmer just has to do const char * s = bing bang boom;

POPT 2.0: renaming to popt2 vs. loader maps and ELF versioned symbols

2010-06-17 Thread Jeff Johnson
There's a thread on gcrypt-devel that is directly relevant to POPT library compatibility and symbol handling: http://lists.gnupg.org/mailman/listinfo/gcrypt-devel (You will get a 403 Forbidden for the gcrypt-devel archives, go find a mirror) And for reference, there's Drepper's deep

Re: POPT 2.0: version stamping in includes

2010-06-18 Thread Jeff Johnson
On Jun 18, 2010, at 9:03 PM, Michael Jennings wrote: Ah, okay. I guess I was envisioning for runtime checks: void *f = dlopen(NULL, RTLD_LAZY); if (dlsym(f, popt_something)) { ... } Any idea how portably POSIX dlsym() is in 2010? There's the GNUish dlvsym() that needs

A better example usage case for POPT_ARG_BITSET

2010-06-21 Thread Jeff Johnson
One of the more subtle additions in popt-1.16 is POPT_ARG_BITSET This a Bloom filter data type that parses option arguments as a CSV and adds to the bit set. What is difficult to describe is why/how Bloom filters work (wikipedia does an excellent job) and particularly how to describe

Re: popt with msvc?

2010-10-27 Thread Jeff Johnson
On Oct 27, 2010, at 12:25 AM, Matt Arsenault wrote: On Oct 26, 2010, at 11:27 PM, Jeff Johnson wrote: What test are failing? Like long long and double, the tests are quite complete over data types and It Really Doesn't Matter: hardly ant program needs/uses long long and double CLI

Re: popt with msvc?

2010-10-28 Thread Jeff Johnson
On Oct 28, 2010, at 12:50 AM, Matt Arsenault wrote: Other than those failed tests, I do now have it working without the need to revert to an older version. If you send alon a patch for VS, I'll try to carry that in popt (I don't do VS or Windoze but ..) There's a patch for Xcode in popt

Re: AW: INFO: Popt 1.14 license evaluation - response appreciated

2011-03-14 Thread Jeff Johnson
On Mar 14, 2011, at 7:41 AM, Hulin, Gerlinde (E D EA SOL D TC1) wrote: Hello, I was wondering if you could respond to my question ? Are ou going to get the issues sorted out regarding the license texts ? I thought this reply (Mark Hatle is part of the the @rpm5.org project that

Re: AW: INFO: Popt 1.14 license evaluation - response appreciated

2011-03-14 Thread Jeff Johnson
On Mar 14, 2011, at 7:41 AM, Hulin, Gerlinde (E D EA SOL D TC1) wrote: Hello, I was wondering if you could respond to my question ? Are ou going to get the issues sorted out regarding the license texts ? Is the most important issue -- highlighted in RED -- the fact that the POPT license

Re: Please remove the following content

2011-07-05 Thread Jeff Johnson
On Jul 5, 2011, at 4:32 AM, Hulin, Gerlinde (E D EA SOL D TC1) wrote: Hello, The following two mails got in your archive without my agreeement. I cannot accept that my complete adress and email contact is online. My memory of the series of events leading to these messages goes like this:

Re: Support for variable number of arguments in popt

2011-09-07 Thread Jeff Johnson
On Sep 7, 2011, at 4:44 AM, Christian Schmidt wrote: Hi, I'm trying to parse a command line that can contain multiple variable number of arguments for a parameter, e.g. program -r /dev/sda /dev/sdb -m /dev/sdc /dev/sdd -b 16m … Traditionally, uglix was designed with the model