Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 548022 Details for
Bug 666948
www-client/firefox-62.0.2: build error if distcc used: UnicodeEncodeError: 'ascii' codec can't encode characters in position 166-168: ordinal not in range(128)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
upstream fix from firefox-63.0_beta
firefox-60.2.0-fix-std-ascii-warning.patch (text/plain), 2.39 KB, created by
tt_1
on 2018-09-27 12:15:37 UTC
(
hide
)
Description:
upstream fix from firefox-63.0_beta
Filename:
MIME Type:
Creator:
tt_1
Created:
2018-09-27 12:15:37 UTC
Size:
2.39 KB
patch
obsolete
># HG changeset patch ># User Jeremy Lempereur <jeremy.lempereur@gmail.com> ># Date 1533407099 -7200 ># Node ID 6ffbddf32df55a99e7e7a4c0b137bd15f6713007 ># Parent d6f7f73cf5d8ae88f609b49ffb21bd76025e4f7d >Bug 1481016 - Network, use inherent rust methods instead of deprecated std::ascii:AsciiExt ones, r=valentin > >MozReview-Commit-ID: F1NGG0q6WdS > >diff --git a/netwerk/base/rust-helper/src/lib.rs b/netwerk/base/rust-helper/src/lib.rs >--- a/netwerk/base/rust-helper/src/lib.rs >+++ b/netwerk/base/rust-helper/src/lib.rs >@@ -1,10 +1,8 @@ >-use std::ascii::AsciiExt; >- > extern crate nserror; > use self::nserror::*; > > extern crate nsstring; > use self::nsstring::nsACString; > > /// HTTP leading whitespace, defined in netwerk/protocol/http/nsHttp.h > static HTTP_LWS: &'static [u8] = &[' ' as u8, '\t' as u8]; >@@ -108,36 +106,36 @@ pub extern "C" fn rust_prepare_accept_la > /// > At all times, language tags and their subtags, including private > /// > use and extensions, are to be treated as case insensitive: there > /// > exist conventions for the capitalization of some of the subtags, > /// > but these MUST NOT be taken to carry meaning. > /// > /// So why is this code even here? See bug 1108183, I guess. > fn canonicalize_language_tag(token: &mut [u8]) { > for c in token.iter_mut() { >- *c = AsciiExt::to_ascii_lowercase(c); >+ *c = c.to_ascii_lowercase(); > } > > let sub_tags = token.split_mut(|c| *c == ('-' as u8)); > for (i, sub_tag) in sub_tags.enumerate() { > if i == 0 { > // ISO 639-1 language code, like the "en" in "en-US" > continue; > } > > match sub_tag.len() { > // Singleton tag, like "x" or "i". These signify a > // non-standard language, so we stop capitalizing after > // these. > 1 => break, > // ISO 3166-1 Country code, like "US" > 2 => { >- sub_tag[0] = AsciiExt::to_ascii_uppercase(&sub_tag[0]); >- sub_tag[1] = AsciiExt::to_ascii_uppercase(&sub_tag[1]); >+ sub_tag[0] = sub_tag[0].to_ascii_uppercase(); >+ sub_tag[1] = sub_tag[1].to_ascii_uppercase(); > }, > // ISO 15924 script code, like "Nkoo" > 4 => { >- sub_tag[0] = AsciiExt::to_ascii_uppercase(&sub_tag[0]); >+ sub_tag[0] = sub_tag[0].to_ascii_uppercase(); > }, > _ => {}, > }; > } > }
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 666948
:
548022
|
549664
|
552804
|
567680