Skip to content

Commit 064e8c7

Browse files
committed
Use UTF-8 instead of utf8 as the encoding name
1 parent 49aa53c commit 064e8c7

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/R-CMD-check-occasional.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,60 +18,60 @@ jobs:
1818
matrix:
1919
os: [macOS-latest, windows-latest, ubuntu-latest]
2020
r: ['devel', 'release', '3.5', '3.6', '4.0', '4.1', '4.2', '4.3', '4.4', '4.5']
21-
locale: ['en_US.utf8',
21+
locale: ['en_US.UTF-8',
2222
# Multibyte characters: Mandarin
23-
'zh_CN.utf8',
23+
'zh_CN.UTF-8',
2424
# Encoding: non-UTF-8 locales for French, Mandarin, and Russian
2525
'fr_CA.ISO-8859-1', 'zh_CN.GB18030', 'ru_RU.KOI8-R',
2626
# Collate order (#3502, see also #7837): Latvian, Azeri, Hungarian, Faroese, Albanian
27-
'lv_LV.utf8', 'az_AZ.utf8', 'hu_HU.utf8', 'fo_FO.utf8', 'sq_MK.utf8',
27+
'lv_LV.UTF-8', 'az_AZ.UTF-8', 'hu_HU.UTF-8', 'fo_FO.UTF-8', 'sq_MK.UTF-8',
2828
# Local time formatting (for R bug #19117)
29-
'vi_VN.utf8']
29+
'vi_VN.UTF-8']
3030
# we're constrained by GHA inflexibility to do a tedious thing here with 'exclude' below.
3131
# better would be for GHA to support multiple 'matrix' configs (one for ubuntu, one for other OS);
3232
# an approach with multiple jobs would tediously require copy-pasting the _rest_ of the steps
3333
exclude:
3434
# only run non-English locale CI on Ubuntu
3535
- os: macOS-latest
36-
locale: 'zh_CN.utf8'
36+
locale: 'zh_CN.UTF-8'
3737
- os: macOS-latest
3838
locale: 'fr_CA.ISO-8859-1'
3939
- os: macOS-latest
4040
locale: 'zh_CN.GB18030'
4141
- os: macOS-latest
4242
locale: 'ru_RU.KOI8-R'
4343
- os: macOS-latest
44-
locale: 'lv_LV.utf8'
44+
locale: 'lv_LV.UTF-8'
4545
- os: macOS-latest
46-
locale: 'az_AZ.utf8'
46+
locale: 'az_AZ.UTF-8'
4747
- os: macOS-latest
48-
locale: 'hu_HU.utf8'
48+
locale: 'hu_HU.UTF-8'
4949
- os: macOS-latest
50-
locale: 'fo_FO.utf8'
50+
locale: 'fo_FO.UTF-8'
5151
- os: macOS-latest
52-
locale: 'sq_MK.utf8'
52+
locale: 'sq_MK.UTF-8'
5353
- os: macOS-latest
54-
locale: 'vi_VN.utf8'
54+
locale: 'vi_VN.UTF-8'
5555
- os: windows-latest
56-
locale: 'zh_CN.utf8'
56+
locale: 'zh_CN.UTF-8'
5757
- os: windows-latest
5858
locale: 'fr_CA.ISO-8859-1'
5959
- os: windows-latest
6060
locale: 'zh_CN.GB18030'
6161
- os: windows-latest
6262
locale: 'ru_RU.KOI8-R'
6363
- os: windows-latest
64-
locale: 'lv_LV.utf8'
64+
locale: 'lv_LV.UTF-8'
6565
- os: windows-latest
66-
locale: 'az_AZ.utf8'
66+
locale: 'az_AZ.UTF-8'
6767
- os: windows-latest
68-
locale: 'hu_HU.utf8'
68+
locale: 'hu_HU.UTF-8'
6969
- os: windows-latest
70-
locale: 'fo_FO.utf8'
70+
locale: 'fo_FO.UTF-8'
7171
- os: windows-latest
72-
locale: 'sq_MK.utf8'
72+
locale: 'sq_MK.UTF-8'
7373
- os: windows-latest
74-
locale: 'vi_VN.utf8'
74+
locale: 'vi_VN.UTF-8'
7575
# macOS/arm64 only available for R>=4.1.0
7676
- os: macOS-latest
7777
r: '3.5'
@@ -179,7 +179,7 @@ jobs:
179179
check_args = c(check_args, "--no-build-vignettes", "--ignore-vignettes")
180180
}
181181
testing_locale = Sys.getenv("R_CMD_CHECK_LC_ALL") # only set on Linux
182-
non_utf8_locale = nzchar(testing_locale) && !grepl("utf8", testing_locale)
182+
non_utf8_locale = nzchar(testing_locale) && !grepl("UTF-8", testing_locale)
183183
if (requireNamespace("rcmdcheck", quietly=TRUE) && !non_utf8_locale) {
184184
if (nzchar(testing_locale)) Sys.setenv(LC_ALL = testing_locale)
185185
rcmdcheck::rcmdcheck(args=check_args, build_args=build_args, error_on="warning", check_dir="check")

0 commit comments

Comments
 (0)