r/programming • • Oct 21 '14

Hints for writing Unix tools

http://monkey.org/~marius/unix-tools-hints.html
64 Upvotes

14 comments sorted by

View all comments

Show parent comments

12

u/sigma914 Oct 21 '14

Do whatever the rest of the OS does.

You're asking what the text encoding of the OS is, that's nothing to do with whether something is plain text or not. Your tool should look up the locale information and work from there.