File: isutf8

package info (click to toggle)
manpages-tr 2.0.6-2
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,168 kB
  • sloc: makefile: 78; sh: 30
file content (9 lines) | stat: -rwxr-xr-x 110 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/bash

c=`locale -c charmap`
if [ "${c: -5:${#c}}" != "UTF-8" ];
then
  echo "no";
else
  echo "yes";
fi