3 ms·
I believe no distro actually ships this version of awk by default. They ship GNU awk which has Unicode support anyways.
by timakro 4y ago
I believe no distro actually ships this version of awk by default. They ship GNU awk which has Unicode support anyways.
- svnpenn 4y agoDebian: https://distrowatch.com/table.php?distribution=debian&pkglist=true&version=11 https://distrowatch.com/table.php?distribution=debian&pkglis...
- timakro 4y agoSo 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}'
- layer8 4y ago…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.
- chasil 4y agoOpenBSD uses "The One True AWK." $ awk -V awk version 20211208 Kernighan's version is likely used in other places where the GPL is eschewed.
- fanf2 4y agoI think the other BSDs do too, including macOS.
- bell-cot 4y agoOn a FreeBSD 12.3-RELEASE box, FWIW: # awk -version awk version 20210215
- brewmarche 4y agoYes, here on macOS 11.6.8 $ awk -version awk version 20200816