bug-gawk
[Top][All Lists]
Advanced

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

Re: Test case to reveal "Invalid multibyte data detected. There may be a


From: Koichi Murase
Subject: Re: Test case to reveal "Invalid multibyte data detected. There may be a mismatch between your data and your locale."
Date: Tue, 16 Mar 2021 01:09:46 +0800

2021-03-16 0:56 Peng Yu <pengyu.ut@gmail.com>:
> https://stackoverflow.com/questions/40049546/fix-mismatch-between-data-and-local-in-awk-command
> I see this warning above. There is not a reproducible test input
> above. Does anybody have some minimal input to reveal this warning
> message? Thanks.

$ LANG=en_US.UTF-8 gawk 'length($0)' <<< $'\x80'
gawk: cmd. line:1: (FILENAME=- FNR=1) warning: Invalid multibyte data
detected. There may be a mismatch between your data and your locale.

--
Koichi



reply via email to

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