On Fri, May 23, 2014 at 09:05:20PM +0200, Bram Moolenaar wrote:
> The file is generated from zh_CN.po with the command:
> 
> iconv -f gb2312 -t cp936 zh_CN.po | \
>               sed -e 's/charset=gb2312/charset=gbk/' -e 's/# Original 
> translations/# Generated from zh_CN.po, DO NOT EDIT/' > zh_CN.cp936.po
> 
> 
> This would suggest that either iconv makes an error or a character is
> not available in the target encoding.

It's strange. The msgid where the corrupted msgstr at is:

msgid "--remote-silent <files>  Same, don't complain if there is no server"

On the next line, there is a single byte \xb2 lost.

I get the same output for this file. But after I edit zh_CN.po by
deleting the first line or the third line (but not the second), this
problem disappears. This seems to be an iconv bug.

BTW, these two files would be the same if the sed command wasn't run.
I'm not sure what cp936 accurately refers to, but it (and also GBK) must
be a superset of GB2312. So is this iconv command really needed?

-- 
Best regards,
lilydjwg

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui