FreeBSD Bugzilla – Attachment 173805 Details for
Bug 211954
sbin/badsect - 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-badsect.txt (text/plain), 523 bytes, created by
Sevan Janiyan
on 2016-08-17 21:15:43 UTC
(
hide
)
Description:
call setlocale()
Filename:
MIME Type:
Creator:
Sevan Janiyan
Created:
2016-08-17 21:15:43 UTC
Size:
523 bytes
patch
obsolete
>Index: sbin/badsect/badsect.c >=================================================================== >--- sbin/badsect/badsect.c (revision 304289) >+++ sbin/badsect/badsect.c (working copy) >@@ -62,6 +62,7 @@ > #include <errno.h> > #include <dirent.h> > #include <fcntl.h> >+#include <locale.h> > #include <libufs.h> > #include <paths.h> > #include <stdio.h> >@@ -95,6 +96,8 @@ > char name[2 * MAXPATHLEN]; > char *name_dir_end; > >+ setlocale(LC_ALL, ""); >+ > if (argc < 3) > usage(); > if (chdir(argv[1]) < 0 || stat(".", &stbuf) < 0)
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 211954
: 173805