Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 156763 Details for
Bug 226857
x11-misc/fbpager-0.1.4 fails to compile w/ gcc-4.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fbpager-0.1.4-gcc43.patch
fbpager-0.1.4-gcc43.patch (text/plain), 1.48 KB, created by
Marek Miller
on 2008-06-14 17:52:36 UTC
(
hide
)
Description:
fbpager-0.1.4-gcc43.patch
Filename:
MIME Type:
Creator:
Marek Miller
Created:
2008-06-14 17:52:36 UTC
Size:
1.48 KB
patch
obsolete
>--- src/FbTk/StringUtil.cc.orig 2008-06-14 17:36:06.000000000 +0000 >+++ src/FbTk/StringUtil.cc 2008-06-14 17:39:56.000000000 +0000 >@@ -23,6 +23,9 @@ > > #include "StringUtil.hh" > >+ >+#include <cstring> >+#include <locale> > #include <string> > #include <cstdio> > #include <cstdlib> >@@ -37,6 +40,26 @@ > > namespace StringUtil { > >+ >+/* >+ * structs needed for std::transform() >+ * See: http://gcc.gnu.org/onlinedocs/libstdc++/22_locale/howto.html#7 >+ */ >+struct ToUpper { >+ ToUpper(std::locale const& l) : loc(l) {;} >+ char operator() (char c) const { return std::toupper(c,loc); } >+ private: >+ std::locale const& loc; >+}; >+ >+struct ToLower { >+ ToLower(std::locale const& l) : loc(l) {;} >+ char operator() (char c) const { return std::tolower(c,loc); } >+private: >+ std::locale const& loc; >+}; >+ >+ > /** > Takes a pointer to string *s as an argument, > creates a new string n, copies s to n and >@@ -160,14 +183,20 @@ > } > > std::string toLower(const std::string &conv) { >+ >+ ToLower __tolower(std::locale::classic()); >+ > std::string ret = conv; >- std::transform(ret.begin(), ret.end(), ret.begin(), tolower); >+ std::transform(ret.begin(), ret.end(), ret.begin(), __tolower); > return ret; > } > > std::string toUpper(const std::string &conv) { >+ >+ ToUpper __toupper(std::locale::classic()); >+ > std::string ret = conv; >- std::transform(ret.begin(), ret.end(), ret.begin(), toupper); >+ std::transform(ret.begin(), ret.end(), ret.begin(), __toupper); > return ret; > } > >
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 226857
: 156763