Skip to content

decode message context to str in read_mo#1278

Open
rootvector2 wants to merge 1 commit into
python-babel:masterfrom
rootvector2:mofile-decode-context
Open

decode message context to str in read_mo#1278
rootvector2 wants to merge 1 commit into
python-babel:masterfrom
rootvector2:mofile-decode-context

Conversation

@rootvector2

Copy link
Copy Markdown

read_mo splits the context off a message but never decodes it, so a .mo carrying a msgctxt yields a Message.context of bytes that mis-keys the entry and crashes re-export through write_mo; found by round-tripping a catalog with a context.

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.

1 participant