[vlc-devel] commit: Factorize a translated message ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jul 6 13:26:24 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jul 6 14:24:01 2008 +0300| [b588a4430681501a8f5ce2ce2fc9cdc684afe634]
Factorize a translated message
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b588a4430681501a8f5ce2ce2fc9cdc684afe634
---
src/extras/getopt.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/extras/getopt.c b/src/extras/getopt.c
index a016a6d..baf2009 100644
--- a/src/extras/getopt.c
+++ b/src/extras/getopt.c
@@ -707,12 +707,15 @@ int
{
if (argv[optind][1] == '-')
/* --option */
- fprintf(stderr, _("%s: unrecognized option `--%s'\n"),
- argv[0], nextchar);
+ fprintf(stderr, _("%s: unrecognized option `%s%s'\n"),
+ "--", argv[0], nextchar);
else
+ {
+ char t[2] = { argv[optind][0], '\0' };
/* +option or -option */
- fprintf(stderr, _("%s: unrecognized option `%c%s'\n"),
- argv[0], argv[optind][0], nextchar);
+ fprintf(stderr, _("%s: unrecognized option `%s%s'\n"),
+ argv[0], t, nextchar);
+ }
}
nextchar = (char *) "";
optind++;
More information about the vlc-devel
mailing list