coreutils
[Top][All Lists]
Advanced

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

tac i18n


From: Collin Funk
Subject: tac i18n
Date: Thu, 27 Nov 2025 13:32:15 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Pádraig,

Your coreutils i18n page mentions that 'tac' needs work to handle
multibyte characters [1]. Could you help me understand why it is listed
there?

My initial guess was that re_search does not work on multibyte
characters since it compares bytes. However, that still works for UTF-8:

   $ printf '1д2д3д' | tac --separator='д' && printf '\n'
   3д2д1д

I guess if we want it to work on other character sets, we can use the
fastmap in only unibyte locales or UTF-8. Does that sound correct? I am
not too familiar with the GNU regex functions.

Collin

[1] https://www.pixelbeat.org/docs/coreutils_i18n/



reply via email to

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