GNU bug report logs - #53145
"cut" can't segment Chinese characters correctly?

Previous Next

Package: coreutils;

Reported by: zendas <zendas <at> protonmail.com>

Date: Sun, 9 Jan 2022 19:13:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: zendas <zendas <at> protonmail.com>
To: 53145 <at> debbugs.gnu.org
Subject: bug#53145: "cut" can't segment Chinese characters correctly?
Date: Sun, 09 Jan 2022 18:53:29 +0000
[Message part 1 (text/plain, inline)]
Hello, I need to get Chinese characters from the string. I googled a lot of documents, it seems that the -c parameter of cut should be able to meet my needs, but I even directly execute the instructions on the web page, and the result is different from the demonstration. I have searched dozens of pages but the results are not the same as the demo, maybe this is a bug?

For example:
https://blog.csdn.net/xuzhangze/article/details/80930714
[20180705173450701.png]
the result of my attempt:
[螢幕快照 2022-01-10 02:49:46.png]
[Message part 2 (text/html, inline)]
[螢幕快照 2022-01-10 024946.png (image/png, inline)]
[20180705173450701.png (image/png, inline)]

This bug report was last modified 3 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.