mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-16 06:52:54 +00:00
Use Go1.11 module (#5743)
* Migrate to go modules * make vendor * Update mvdan.cc/xurls * make vendor * Update code.gitea.io/git * make fmt-check * Update github.com/go-sql-driver/mysql * make vendor
This commit is contained in:
parent
d578b71d61
commit
d77176912b
575 changed files with 63239 additions and 13963 deletions
5
vendor/golang.org/x/text/encoding/htmlindex/gen.go
generated
vendored
5
vendor/golang.org/x/text/encoding/htmlindex/gen.go
generated
vendored
|
@ -133,7 +133,10 @@ var consts = map[string]string{
|
|||
// locales is taken from
|
||||
// https://html.spec.whatwg.org/multipage/syntax.html#encoding-sniffing-algorithm.
|
||||
var locales = []struct{ tag, name string }{
|
||||
{"und", "windows-1252"}, // The default value.
|
||||
// The default value. Explicitly state latin to benefit from the exact
|
||||
// script option, while still making 1252 the default encoding for languages
|
||||
// written in Latin script.
|
||||
{"und_Latn", "windows-1252"},
|
||||
{"ar", "windows-1256"},
|
||||
{"ba", "windows-1251"},
|
||||
{"be", "windows-1251"},
|
||||
|
|
2
vendor/golang.org/x/text/encoding/htmlindex/htmlindex.go
generated
vendored
2
vendor/golang.org/x/text/encoding/htmlindex/htmlindex.go
generated
vendored
|
@ -50,7 +50,7 @@ func LanguageDefault(tag language.Tag) string {
|
|||
for _, t := range strings.Split(locales, " ") {
|
||||
tags = append(tags, language.MustParse(t))
|
||||
}
|
||||
matcher = language.NewMatcher(tags)
|
||||
matcher = language.NewMatcher(tags, language.PreferSameScript(true))
|
||||
})
|
||||
_, i, _ := matcher.Match(tag)
|
||||
return canonical[localeMap[i]] // Default is Windows-1252.
|
||||
|
|
4
vendor/golang.org/x/text/encoding/htmlindex/tables.go
generated
vendored
4
vendor/golang.org/x/text/encoding/htmlindex/tables.go
generated
vendored
|
@ -313,7 +313,7 @@ var nameMap = map[string]htmlEncoding{
|
|||
}
|
||||
|
||||
var localeMap = []htmlEncoding{
|
||||
windows1252, // und
|
||||
windows1252, // und_Latn
|
||||
windows1256, // ar
|
||||
windows1251, // ba
|
||||
windows1251, // be
|
||||
|
@ -349,4 +349,4 @@ var localeMap = []htmlEncoding{
|
|||
big5, // zh-hant
|
||||
}
|
||||
|
||||
const locales = "und ar ba be bg cs el et fa he hr hu ja kk ko ku ky lt lv mk pl ru sah sk sl sr tg th tr tt uk vi zh-hans zh-hant"
|
||||
const locales = "und_Latn ar ba be bg cs el et fa he hr hu ja kk ko ku ky lt lv mk pl ru sah sk sl sr tg th tr tt uk vi zh-hans zh-hant"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue