Commit: translation: the ja.euc-jp.po file is generated wrong on macOS
Christian Brabandt <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <[email protected]> |
translation: the ja.euc-jp.po file is generated wrong on macOS Commit: https://github.com/vim/vim/commit/08baca8abd55fb64c38db58927f91b04cad72e37 Author: Hirohito Higashi <[email protected]> Date: Tue Aug 18 20:36:16 2026 +0000 translation: the ja.euc-jp.po file is generated wrong on macOS Problem: The macOS CI job fails now and then on the check of ja.euc-jp.po. The iconv of macOS turns a backslash that follows a multibyte character into a fullwidth one, which breaks the escaping. The file in the repository is correct, it is only regenerated when a checkout leaves ja.po newer, which is why the failure comes and goes. Solution: Convert to EUC-JP-MS, which keeps the backslash and gives the same result otherwise. closes: #21082 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> diff --git a/src/po/Makefile b/src/po/Makefile index e63abd0ef..cd0bd5e9d 100644 --- a/src/po/Makefile +++ b/src/po/Makefile @@ -108,8 +108,11 @@ ja.sjis.po: ja.po sjiscorr: sjiscorr.c $(CC) -o sjiscorr sjiscorr.c +# Use EUC-JP-MS instead of EUC-JP: the iconv of macOS turns a backslash that +# follows a multibyte character into a fullwidth one for EUC-JP, which breaks +# the escaping in the po file. The result is the same for both names. ja.euc-jp.po: ja.po - iconv -f UTF-8 -t EUC-JP $? | \ + iconv -f UTF-8 -t EUC-JP-MS $? | \ $(SED) -e 's/charset=[uU][tT][fF]-8/charset=EUC-JP/' \ -e 's/# Original translations/# Generated from $?, DO NOT EDIT/' \ > $@ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1wwQgD-00Aj2h-GX%40256bit.org.