FreeBSD Bugzilla – Attachment 173770 Details for
Bug 211933
bin/mkdir - call setlocale so tool adheres to support localisation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
call setlocale()
patch-freebsd-mkdir.txt (text/plain), 478 bytes, created by
Sevan Janiyan
on 2016-08-17 10:41:08 UTC
(
hide
)
Description:
call setlocale()
Filename:
MIME Type:
Creator:
Sevan Janiyan
Created:
2016-08-17 10:41:08 UTC
Size:
478 bytes
patch
obsolete
>Index: bin/mkdir/mkdir.c >=================================================================== >--- bin/mkdir/mkdir.c (revision 304289) >+++ bin/mkdir/mkdir.c (working copy) >@@ -46,6 +46,7 @@ > > #include <err.h> > #include <errno.h> >+#include <locale.h> > #include <libgen.h> > #include <stdio.h> > #include <stdlib.h> >@@ -66,6 +67,8 @@ > void *set = NULL; > char *mode; > >+ setlocale(LC_ALL, ""); >+ > omode = pflag = 0; > mode = NULL; > while ((ch = getopt(argc, argv, "m:pv")) != -1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211933
: 173770