Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

gettext-0.19.8.1-5 not returning when msgstr is multibyte

  • 1.  gettext-0.19.8.1-5 not returning when msgstr is multibyte

    Posted Tue November 24, 2020 11:41 AM
    Hello,

    Having an issue with gettext returning the sent msgid when the msgstr is multibyte (Chinese, Japanese, and/or Korean), all others are working well. Please see the below paste bin from output.

    This is on 7100-05-05-1939.

    https://pastebin.com/gEVWL4Q3

    Thank you,
    Michael
    #AIXOpenSource


  • 2.  RE: gettext-0.19.8.1-5 not returning when msgstr is multibyte

    Posted Wed November 25, 2020 11:35 AM
    Hi Michael.

    Let us know what encoding the .mo file is having. Please share the .mo file with us.
    The message file being used is from any open source package or is it generated from some other source ?


    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: gettext-0.19.8.1-5 not returning when msgstr is multibyte

    Posted Wed November 25, 2020 12:00 PM
    Hello,

    .po has "Content-Type: text/plain; charset=utf-8\n" and "Content-Transfer-Encoding: 8bit\n" .
    .mo is made from .po using msgfmt -o messages.mo messages.po .

    Worked around the issue by using Python rather than executing gettext.

    Thank you,
    Michael

    ------------------------------
    Michael Le Fevers
    ------------------------------