[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes

From: Hermann Peifer
Subject: [bug-gawk] Using ENVIRON["LANG"] = "C" instead of --characters-as-bytes
Date: Thu, 12 Mar 2015 19:14:47 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hi again,

I thought that in gawk/master, I could use ENVIRON["LANG"] = "C" instead of --characters-as-bytes, in analogy to changing the time zone via ENVIRON["TZ"] = "UTC". I do however always end up with the lint warning: Invalid multibyte data detected. There may be a mismatch between your data and your locale.

Is this a feature ?


# Some code snippet which doesn't work as epxected
        # Try to simulate --characters-as-bytes
        ENVIRON["LC_ALL"] = "C"
        ENVIRON["LANG"] = "C"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]