FreeBSD Bugzilla – Attachment 168074 Details for
Bug 207918
C++ ostream operator << broken for unsigned long long when using showbase with octal format
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
new patch that fixes both unsigned long and unsigned long long
locale.patch (text/plain), 1.15 KB, created by
Daniel McRobb
on 2016-03-13 07:06:21 UTC
(
hide
)
Description:
new patch that fixes both unsigned long and unsigned long long
Filename:
MIME Type:
Creator:
Daniel McRobb
Created:
2016-03-13 07:06:21 UTC
Size:
1.15 KB
patch
obsolete
>Index: /usr/src/contrib/libc++/include/locale >=================================================================== >--- /usr/src/contrib/libc++/include/locale (revision 296556) >+++ /usr/src/contrib/libc++/include/locale (working copy) >@@ -1615,7 +1615,7 @@ > this->__format_int(__fmt+1, __len, false, __iob.flags()); > const unsigned __nbuf = (numeric_limits<unsigned long>::digits / 3) > + ((numeric_limits<unsigned long>::digits % 3) != 0) >- + 1; >+ + (__fmt[1] == '#') + 1; > char __nar[__nbuf]; > #ifdef _LIBCPP_LOCALE__L_EXTENSIONS > int __nc = snprintf_l(__nar, sizeof(__nar), _LIBCPP_GET_C_LOCALE, __fmt, __v); >@@ -1645,7 +1645,7 @@ > this->__format_int(__fmt+1, __len, false, __iob.flags()); > const unsigned __nbuf = (numeric_limits<unsigned long long>::digits / 3) > + ((numeric_limits<unsigned long long>::digits % 3) != 0) >- + 1; >+ + (__fmt[1] == '#') + 1; > char __nar[__nbuf]; > #ifdef _LIBCPP_LOCALE__L_EXTENSIONS > int __nc = snprintf_l(__nar, sizeof(__nar), _LIBCPP_GET_C_LOCALE, __fmt, __v);
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 207918
:
168073
| 168074