aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/awk/lib.c
AgeCommit message (Collapse)AuthorFilesLines
2019-10-29awk: split record into runes for empty FS (#292)Fazlul Shahriar1-4/+9
awk was splitting records into bytes instead of runes for empty FS. For example, this was printing only the first byte of the utf-8 encoding of é: echo é | awk 'BEGIN{FS=""}{print $1}' The change just copies how the `split` function handles runes. Originally reported by kris on twitter: https://twitter.com/p9luv/status/1180436083433201665
2008-11-03awk: import from sourcesJeff Sickel1-0/+713