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 301534 - gtk_init() remove the dash "-" from the application argument.
gtk_init() remove the dash "-" from the application argument.
Status: RESOLVED DUPLICATE of bug 168008
Product: glib
Classification: Platform
Component: general
2.6.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-04-22 01:22 UTC by Mohammed Sameer
Modified: 2005-05-06 19:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mohammed Sameer 2005-04-22 01:22:22 UTC
Please describe the problem:


Steps to reproduce:
Compile the following code via:
gcc -o foo foo.c `pkg-config gtk+-2.0 --cflags --libs`

#include <gtk/gtk.h>

int main(int argc, char *argv[])
{
  printf("%i %s %s\n", argc, argv[0], argv[1]);
  gtk_init(&argc, &argv);
  printf("%i %s %s\n", argc, argv[0], argv[1]);
}

$ ./foo -
2 ./foo -
1 ./foo (null)

./foo foo
2 ./foo foo
2 ./foo foo


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Thomas Leonard 2005-05-06 09:54:46 UTC
Looks like a duplicate of bug 168008 and bug 303166.
Comment 2 Matthias Clasen 2005-05-06 19:46:23 UTC

*** This bug has been marked as a duplicate of 168008 ***