about summary refs log tree commit diff
path: root/contrib/mrecode
blob: 45a00a79d611fbf90fc4c1cfbf15ddf98367bdb8 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
# mrecode - recode stdin respecting PIPE_CHARSET into UTF-8

if [ -n "$PIPE_CHARSET" ]; then
	exec iconv -f "$PIPE_CHARSET" -t UTF-8
else
	exec cat
fi