Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (13 sloc) 259 Bytes
#!/usr/bin/ruby
#
#Copyright (c) 2012, Yahoo! Inc. All rights reserved.
#Copyrights licensed under the New BSD License. See the accompanying LICENSE
#file for terms.
#
while c = STDIN.getc
if c >= 0x80
printf "\\x%02x" % c
else
putc c
end
end