aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-helper-fs-publish.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-helper-fs-publish.c')
-rw-r--r--src/fs/gnunet-helper-fs-publish.c5
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 */
415int main(int argc, 415int 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 */