libiconv: add CP65001 as alias for UTF-8

This commit is contained in:
Nathan Du
2023-02-11 22:36:18 +08:00
committed by Markus Mützel
parent 49dbdec7de
commit a42e520c12
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
diff -urN a/lib/encodings.def b/lib/encodings.def
--- a/lib/encodings.def 2021-06-06 17:50:48.000000000 +0800
+++ b/lib/encodings.def 2023-01-12 21:17:32.598803000 +0800
@@ -59,7 +59,7 @@
DEFENCODING(( "UTF-8", /* IANA, RFC 2279 */
/*"UTF8", JDK 1.1 */
- /*"CP65001", Windows */
+ "CP65001", /* Windows */
),
utf8,
{ utf8_mbtowc, NULL }, { utf8_wctomb, NULL })

View File

@@ -13,12 +13,14 @@ mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url='https://www.gnu.org/software/libiconv/'
source=("https://ftp.gnu.org/pub/gnu/${_realname}/${_realname}-${pkgver}.tar.gz"{,.sig}
0004-fix-makefile-devel-assuming-gcc.patch
0003-add-cp65001-as-utf8-alias.patch
0002-fix-cr-for-awk-in-configure.all.patch
fix-pointer-buf.patch
iconv.pc)
sha256sums=('8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313'
'SKIP'
'2f08ca8681e4c85cdb2e6835921a502fd623dee4bf8ca10aa3c66747ede58a47'
'cb2b1cca44c9b9bd11c3bd33997c10d22dff263542275324c88f34b59910ef87'
'89d5c0f666e50a0186cfb142ba7b77e8fe1ac4d65bdfd9ae14ae8d2f0045a87c'
'6b6e2393840f4dc6067587165777b1a07978f4c05247d7c1010a45ad251bbeeb'
'56e7ec406bf42eb66b1d972f20d229f7a76ba00c38c7b4403bf348875704baae')
@@ -46,6 +48,7 @@ prepare() {
apply_patch_with_msg \
0002-fix-cr-for-awk-in-configure.all.patch \
fix-pointer-buf.patch \
0003-add-cp65001-as-utf8-alias.patch \
0004-fix-makefile-devel-assuming-gcc.patch
regenerate_files
}