Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Convert all args using GetCommandLineW() on Windows
Checking for ? isn't enough — some characters are 'loosely' translated on
the 8-bit command line judging by https://bugzilla.redhat.com/1124436#c2

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Aug 7, 2014
1 parent a739040 commit ab6a451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Expand Up @@ -328,7 +328,7 @@ static char *convert_arg_to_utf8(char **argv, char *arg)
#undef vfprintf
#define fprintf fprintf_utf8
#define vfprintf vfprintf_utf8
#define is_arg_utf8(str) (!strchr(str, '?'))
#define is_arg_utf8(str) (0)

static void read_stdin(char **string, int hidden)
{
Expand Down

0 comments on commit ab6a451

Please sign in to comment.