From: Anthony Martin Date: Wed, 1 Feb 2012 02:15:42 +0000 (-0800) Subject: gc: use octal escapes in mkopnames X-Git-Tag: weekly.2012-02-07~155 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8039683cef026edb88ae9dc6cd766feccdb40ff4;p=gostls13.git gc: use octal escapes in mkopnames Plan 9's tr(1) doesn't accept the C-style escapes for tab and newline characters. I was going to use the \xFF hexadecimal escapes but GNU tr(1) doesn't accept those. It seems octal is the least common denominator. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5576079 --- diff --git a/src/cmd/gc/mkopnames b/src/cmd/gc/mkopnames index fb2ceec81f..d3f27e8152 100755 --- a/src/cmd/gc/mkopnames +++ b/src/cmd/gc/mkopnames @@ -14,8 +14,8 @@ echo '{' sed -n '/OXXX/,/OEND/p' go.h | cpp | sed 's!//.*!!; /^#/d' | - tr ' ' '\n' | - tr -d ' \t,' | + tr ' ' '\012' | + tr -d ' \011,' | grep . | sort | grep -v '^OEND$' |