After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 393764 - command line parsing fails when swapping arguments
command line parsing fails when swapping arguments
Status: RESOLVED INVALID
Product: glib
Classification: Platform
Component: general
2.12.x
Other Linux
: Normal major
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2007-01-07 02:18 UTC by Christian Kirbach
Modified: 2007-01-07 16:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
attempted testcase (1.74 KB, text/plain)
2007-01-07 02:20 UTC, Christian Kirbach
Details

Description Christian Kirbach 2007-01-07 02:18:07 UTC
to reproduce

1. get gnome-mag svn
2. apply patch #79532 (http://bugzilla.gnome.org/attachment.cgi?id=79532)
3. compile and install
4. run "magnifier --cursor-color=16711680 -v -m" and see that everything is fine
5. run "magnifier -v -m --cursor-color=16711680" and marvel the difference.

actually, the parser does not alter any variables at all (if I am not mistaken).
also, g_option_context_parse() returns true, meaning that it says it succeeded.
Comment 1 Christian Kirbach 2007-01-07 02:20:39 UTC
Created attachment 79596 [details]
attempted testcase

I tried to reproduce with a minimal test case, but did not succeed. Attaching my work here, hoping it may serve well.
Comment 2 Matthias Clasen 2007-01-07 03:40:26 UTC
your testcase works fine for me - was it supposed to demonstrate the problem ?
Comment 3 Christian Kirbach 2007-01-07 10:54:39 UTC
Matthias: No, to reproduce the problem, follow the initial comment - involves patching gnome-mag.


I tried to forge a minimal testcase, but did not succeed in finding one. Attached my work here, just in case someone may find it useful.
Comment 4 Matthias Clasen 2007-01-07 14:33:16 UTC
I don't really have time to patch gnome-mag for debugging this. 
If the problem occurs in gnome-mag, but not in the equivalent
test-case, chances are that it is a gnome-mag problem.
Comment 5 Christian Persch 2007-01-07 16:19:09 UTC
This was caused by a bug in the gnome-mag patch, see bug 337000 comment 29.