FreeBSD Bugzilla – Attachment 172364 Details for
Bug 210995
cat -v fails to tag characters in extended table with M- prefix with some locales
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
remove isprint check & switch setlocale() to use LC_ALL
patch-freebsd-cat-vflag.txt (text/plain), 558 bytes, created by
Sevan Janiyan
on 2016-07-11 03:52:59 UTC
(
hide
)
Description:
remove isprint check & switch setlocale() to use LC_ALL
Filename:
MIME Type:
Creator:
Sevan Janiyan
Created:
2016-07-11 03:52:59 UTC
Size:
558 bytes
patch
obsolete
>Index: bin/cat/cat.c >=================================================================== >--- bin/cat/cat.c (revision 302533) >+++ bin/cat/cat.c (working copy) >@@ -99,7 +99,7 @@ > int ch; > struct flock stdout_lock; > >- setlocale(LC_CTYPE, ""); >+ setlocale(LC_ALL, ""); > > while ((ch = getopt(argc, argv, "belnstuv")) != -1) > switch (ch) { >@@ -239,7 +239,7 @@ > continue; > } > } else if (vflag) { >- if (!isascii(ch) && !isprint(ch)) { >+ if (!isascii(ch)) { > if (putchar('M') == EOF || putchar('-') == EOF) > break; > ch = toascii(ch);
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 210995
: 172364 |
173315
|
173316
|
173318
|
174708