FreeBSD Bugzilla – Attachment 173736 Details for
Bug 211901
bin/cp - 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-cp.txt (text/plain), 560 bytes, created by
Sevan Janiyan
on 2016-08-16 13:17:56 UTC
(
hide
)
Description:
call setlocale()
Filename:
MIME Type:
Creator:
Sevan Janiyan
Created:
2016-08-16 13:17:56 UTC
Size:
560 bytes
patch
obsolete
>Index: bin/cp/cp.c >=================================================================== >--- bin/cp/cp.c (revision 304164) >+++ bin/cp/cp.c (working copy) >@@ -65,6 +65,7 @@ > #include <err.h> > #include <errno.h> > #include <fts.h> >+#include <locale.h> > #include <limits.h> > #include <signal.h> > #include <stdio.h> >@@ -100,6 +101,8 @@ > int Hflag, Lflag, ch, fts_options, r, have_trailing_slash; > char *target; > >+ setlocale(LC_ALL, ""); >+ > fts_options = FTS_NOCHDIR | FTS_PHYSICAL; > Hflag = Lflag = 0; > while ((ch = getopt(argc, argv, "HLPRafilnprsvx")) != -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 211901
: 173736