Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gettext: support non-ASCII msgids for Rust#12491

Closed
danielrainer wants to merge 1 commit intofish-shell:masterfrom
danielrainer:gettext_non_ascii_msgid
Closed

gettext: support non-ASCII msgids for Rust#12491
danielrainer wants to merge 1 commit intofish-shell:masterfrom
danielrainer:gettext_non_ascii_msgid

Conversation

@danielrainer
Copy link

The msguniq call for deduplicating the msgids originating from Rust previously did not get a header entry (empty msgid with msgstr containing metadata). This works fine as long as all msgids are ASCII-only. But when a non-ASCII character appears in a msgid, msguniq errors out without a header specifying the encoding. To resolve this, add the header to the input of this msguniq invocation and then remove the header again using sed to prevent duplicating it for the outer msguniq call at the end of the file.

The `msguniq` call for deduplicating the msgids originating from Rust
previously did not get a header entry (empty msgid with msgstr
containing metadata). This works fine as long as all msgids are
ASCII-only. But when a non-ASCII character appears in a msgid, `msguniq`
errors out without a header specifying the encoding. To resolve this,
add the header to the input of this `msguniq` invocation and then remove
the header again using sed to prevent duplicating it for the outer
msguniq call at the end of the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants