Hi,

I find it sad that such a bug in one of the most important packages 
doesn't even get a reply from the maintainer in more than four years.

On Sun, Aug 29, 2021 at 04:00:48PM +0200, наб wrote:
> -d  delim
>     Set the field delimiter to the character delim.
>     The default is the <tab>.
> -- >8 --
> 
> And so, one'd expect the following to hold:
> -- >8 --
> $ echo яйцояЙЦО | cut -f 2 -d я
> йцо
> -- >8 --
> 
> However, GNU coreutils' cut yields:
> -- >8 --
> $ echo яйцояЙЦО | cut -f 2 -d я
> cut: the delimiter must be a single character
> Try 'cut --help' for more information.
> -- >8 --
> 
> Not sure how this is valid,
> considering я is very much a single character?

That being said, it works on OpenSUSE:

ef9046429ed4:/ # echo яйцояЙЦО | cut -f 2 -d я
йцо
ef9046429ed4:/ # cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20251112"
ID="opensuse-tumbleweed"

OpenSUSE Tumbleweed currently has coreutils 9.9, so this might 
theoretically be something that got very recently implemented, but I 
doubt that. I guess it's some configure option. I recommend taking a 
look at OpenSUSE's compile time configuration.

On the other hand, this change has the potential of breaking existing 
shell scipts. So it has to be carefully handled.

Greetings
Marc

Reply via email to