Skip to content

Commit 2404f77

Browse files
committed
Merge pull request #1 from phsmit/fix_gb18030
The correct iana name for GB18030 is without the dash
2 parents bdb5a06 + ad5fc6d commit 2404f77

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

detector_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestDetector(t *testing.T) {
2525
{"8859_1_fr.html", true, "ISO-8859-1", "fr"},
2626
{"8859_1_pt.html", true, "ISO-8859-1", "pt"},
2727
{"shift_jis.html", true, "Shift_JIS", "ja"},
28-
{"gb18030.html", true, "GB-18030", "zh"},
28+
{"gb18030.html", true, "GB18030", "zh"},
2929
{"euc_jp.html", true, "EUC-JP", "ja"},
3030
{"euc_kr.html", true, "EUC-KR", "ko"},
3131
{"big5.html", true, "Big5", "zh"},

example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ func ExampleTextDetector() {
2323
result.Language)
2424
}
2525
// Output:
26-
// Detected charset is GB-18030, language is zh
26+
// Detected charset is GB18030, language is zh
2727
}

multi_byte.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ var commonChars_gb_18030 = []uint16{
337337

338338
func newRecognizer_gb_18030() *recognizerMultiByte {
339339
return &recognizerMultiByte{
340-
"GB-18030",
340+
"GB18030",
341341
"zh",
342342
charDecoder_gb_18030{},
343343
commonChars_gb_18030,

0 commit comments

Comments
 (0)