view tests/test-quotearg.sh @ 39186:c1c789fe74ad

spawn-pipe: Silence a clang warning. Reported by Tim Rühsen <tim.ruehsen@gmx.de>. * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings in this file.
author Bruno Haible <bruno@clisp.org>
date Fri, 15 Dec 2017 10:44:15 +0100
parents f89132d7adb1
children 8c1a17df67e0
line wrap: on
line source

#!/bin/sh

# Choose an existing locale. The locale encoding does not matter; see the
# comment in test-quotearg.po.
if test $LOCALE_FR_UTF8 != none; then
  locale=$LOCALE_FR_UTF8
else
  if test $LOCALE_FR != none; then
    locale=$LOCALE_FR
  else
    locale=none
  fi
fi

# Work around a limitation of gettext() on native Windows in gettext 0.18.1:
# the locale identifiers in the environment variables LC_ALL etc. have to
# be in Unix conventions, not in native Window conventions.
if test $locale = French_France.65001; then
  locale=fr_FR.UTF-8
fi
if test $locale = French_France.1252; then
  locale=fr_FR.CP1252
fi

LOCALE=$locale LOCALEDIR="$srcdir/locale" \
./test-quotearg${EXEEXT}