File: idn2

package info (click to toggle)
libidn2 2.3.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,768 kB
  • sloc: ansic: 6,049; sh: 1,480; makefile: 499; xml: 50; perl: 15
file content (27 lines) | stat: -rwxr-xr-x 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

set -e

WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR

idn2 --version
echo "PASS: idn2 --version"

idn2 --help
echo "PASS: idn2 --help"

idn2 --version
idn2 --version|(! grep '()')
echo "PASS: idn2 --version"

man -P cat idn2
echo "PASS: man idn2"

# Make sure idn2 understands the locale is UTF-8, for the next test.
LC_ALL=C.UTF-8
export LC_ALL

idn2 --decode xn--rksmrgs-5wao1o
echo "PASS: idn2"