News for hackers. Stuff that matters.
Re:Brian Kernighan adds Unicode support to Awk by timakro on Saturday August 20, 2022 @03:04PM (#32534399)
I believe no distro actually ships this version of awk by default. They ship GNU awk which has Unicode support anyways.
Re:Brian Kernighan adds Unicode support to Awk by chasil on Saturday August 20, 2022 @04:00PM (#32534770)
OpenBSD uses "The One True AWK."

  $ awk -V
  awk version 20211208
Kernighan's version is likely used in other places where the GPL is eschewed.
Re:Brian Kernighan adds Unicode support to Awk by fanf2 on Saturday August 20, 2022 @04:51PM (#32535057)
I think the other BSDs do too, including macOS.
Re:Brian Kernighan adds Unicode support to Awk by brewmarche on Sunday August 21, 2022 @08:37AM (#32539544)
Yes, here on macOS 11.6.8

  $ awk -version
  awk version 20200816
Re:Brian Kernighan adds Unicode support to Awk by bell-cot on Sunday August 21, 2022 @07:57AM (#32539298)
On a FreeBSD 12.3-RELEASE box, FWIW:

   # awk -version
   awk version 20210215
Re:Brian Kernighan adds Unicode support to Awk by svnpenn on Saturday August 20, 2022 @03:17PM (#32534480)
Re:Brian Kernighan adds Unicode support to Awk by timakro on Saturday August 20, 2022 @03:25PM (#32534543)
So it turns out the default on Debian is mawk which does NOT support Unicode. Thanks for pointing that out. This simple test gives different results for gawk and mawk.

  $ echo 'ö' | awk '{print length}'
Re:Brian Kernighan adds Unicode support to Awk by layer8 on Saturday August 20, 2022 @06:08PM (#32535584)
…only if the current locale is set to use UTF-8 (or some other variable-width encoding). Which nowadays the default locale usually does, but in principle it doesn’t need to be.