diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-10 22:47:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-10 22:47:57 +0000 |
commit | 7e5c0a94bacdfe6e1c65035b16fd97a77398df12 (patch) | |
tree | 70380ec85a0f4841247de81e8359e063da7486c1 /src/fs/gnunet-helper-fs-publish.c | |
parent | df62a12c9b51fd13cc37058d4a88a32d93386d79 (diff) | |
download | gnunet-7e5c0a94bacdfe6e1c65035b16fd97a77398df12.tar.gz gnunet-7e5c0a94bacdfe6e1c65035b16fd97a77398df12.zip |
LRN: new utf8 argv converter for W32, converting strings on command-line to UTF-8 for all command-line tools.
Diffstat (limited to 'src/fs/gnunet-helper-fs-publish.c')
-rw-r--r-- | src/fs/gnunet-helper-fs-publish.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fs/gnunet-helper-fs-publish.c b/src/fs/gnunet-helper-fs-publish.c index 86b02492d..45f6d588d 100644 --- a/src/fs/gnunet-helper-fs-publish.c +++ b/src/fs/gnunet-helper-fs-publish.c | |||
@@ -413,7 +413,7 @@ extract_files (struct ScanTreeNode *item) | |||
413 | * @return 0 on success | 413 | * @return 0 on success |
414 | */ | 414 | */ |
415 | int main(int argc, | 415 | int main(int argc, |
416 | char **argv) | 416 | char *const *argv) |
417 | { | 417 | { |
418 | const char *filename_expanded; | 418 | const char *filename_expanded; |
419 | const char *ex; | 419 | const char *ex; |
@@ -424,6 +424,9 @@ int main(int argc, | |||
424 | * binary mode. | 424 | * binary mode. |
425 | */ | 425 | */ |
426 | _setmode (1, _O_BINARY); | 426 | _setmode (1, _O_BINARY); |
427 | /* Get utf-8-encoded arguments */ | ||
428 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) | ||
429 | return 5; | ||
427 | #endif | 430 | #endif |
428 | 431 | ||
429 | /* parse command line */ | 432 | /* parse command line */ |