Package: maint-guide
Severity: normal

While I am update maint-guide's zh-cn translation in favor of Bug
#593663, I found `make po' generates invalid sgml for zh-cn. I checked
Makefile and it specific latin1 encoding for all po:

# generating SGML files from PO files
PO_UPDATE       := po4a-updatepo --previous -M latin1 -f sgml
#PO_UPDATE      := po4a-updatepo --previous --msgmerge-opt --no-wrap -M
latin1 -f sgml
PO_TRANSLATE    := po4a-translate  -M latin1 -f sgml --keep 0
PO_GETTEXT      := po4a-gettextize -M latin1 -f sgml

and

po:
        if ! [ -f version.ent ]; then $(MAKE) version.ent; fi
        for lang in $(LANG_PO); do \
        $(PO_UPDATE) -m $(MANUAL).en.sgml -p $(MANUAL).$$lang.po ;\
        $(PO_TRANSLATE) -v -L latin1 -m $(MANUAL).en.sgml -l
$(MANUAL).$$lang.sgml -p $(MANUAL).$$lang.po -a $$lang.1.add ;\
        done
        $(PO_GETTEXT) -m $(MANUAL).en.sgml -p $(MANUAL).pot

This will make the generated sgml not valid, and I have to change it to
utf8 myself. Since zh-cn translation update will be sent using po
format, this is a bug in maint-guide, please consider to give it a fix.

I verified that this command works well:

po4a-translate -M utf8 -f sgml --keep 0 -m maint-guide.en.sgml -l
maint-guide.zh-cn.sgml -p maint-guide.zh-cn.po -a zh-cn.1.add


-- 
Regards,
Aron Xu

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to