Bugzilla – Attachment 425343 Details for
Bug 683881
Incorrect Russian characters in Yast messages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Fix patch (untested!)
ycp-nbsp-fix.diff (text/plain), 830 bytes, created by
Takashi Iwai
on 2011-04-18 10:09:03 UTC
(
hide
)
Description:
Fix patch (untested!)
Filename:
MIME Type:
Creator:
Takashi Iwai
Created:
2011-04-18 10:09:03 UTC
Size:
830 bytes
patch
obsolete
>--- > libycp/src/YCPBuiltinFloat.cc | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) > >--- a/libycp/src/YCPBuiltinFloat.cc >+++ b/libycp/src/YCPBuiltinFloat.cc >@@ -265,6 +265,23 @@ > return ret; > } > >+// bnc#683881 >+static std::string nbsp_fixed_string (const std::string& str) >+{ >+ std::string s; >+ const char *p; >+ unsigned char prev; >+ >+ p = str.c_str(); >+ for (; *p; p++) { >+ // fix invalid NBSP in ru or fi locales >+ if (prev == 0xc2 && (unsigned char)*p < 0x80) >+ s += (char)0xa0; >+ s += *p; >+ prev = *p; >+ } >+ return s; >+} > > // bnc#460094 > static YCPValue >@@ -289,7 +306,7 @@ > ss.imbue (std::locale ("")); > ss.precision (precision->value ()); > ss << fixed<< f->value (); >- YCPString ret (ss.str ()); >+ YCPString ret (nbsp_fixed_string (ss.str ())); > > 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
.
Actions:
View
|
Diff
Attachments on
bug 683881
:
422286
|
424882
| 425343 |
431784