X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibpspp%2Fencoding-guesser.at;h=1c7af5b70993a627525c069bab64d46dcabaad88;hb=3d183ce2adfc32a104c91baa3ab5909d6f7afaa1;hp=d63dc37e7990ea90b5063f9d6f791ebe31252938;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/tests/libpspp/encoding-guesser.at b/tests/libpspp/encoding-guesser.at index d63dc37e79..1c7af5b709 100644 --- a/tests/libpspp/encoding-guesser.at +++ b/tests/libpspp/encoding-guesser.at @@ -1,3 +1,19 @@ +dnl PSPP - a program for statistical analysis. +dnl Copyright (C) 2017 Free Software Foundation, Inc. +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see . +dnl AT_BANNER([encoding guesser]) AT_SETUP([ASCII]) @@ -8,14 +24,14 @@ AT_CLEANUP AT_SETUP([UTF-8]) AT_KEYWORDS([encoding guesser]) -AT_CHECK([supports_encodings ISO-8859-1]) +AT_CHECK([i18n-test supports_encodings ISO-8859-1]) AT_CHECK([printf '\346\227\245\346\234\254\350\252\236\n' | encoding-guesser-test Auto,ISO-8859-1], [0], [UTF-8 ]) AT_CLEANUP AT_SETUP([UTF-8 starting with ASCII]) AT_KEYWORDS([encoding guesser]) -AT_CHECK([supports_encodings ISO-8859-1]) +AT_CHECK([i18n-test supports_encodings ISO-8859-1]) AT_CHECK([printf 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\346\227\245\346\234\254\350\252\236\n' | encoding-guesser-test Auto,ISO-8859-1 32], [0], [UTF-8 ]) AT_CLEANUP @@ -96,7 +112,7 @@ AT_CLEANUP AT_SETUP([ISO-8859-1]) AT_KEYWORDS([encoding guesser]) -AT_CHECK([supports_encodings ISO-8859-1]) +AT_CHECK([i18n-test supports_encodings ISO-8859-1]) AT_CHECK([printf 'entr\351e\n' | encoding-guesser-test Auto,ISO-8859-1], [0], [ISO-8859-1 ]) @@ -104,7 +120,7 @@ AT_CLEANUP AT_SETUP([GB-18030 with byte order mark]) AT_KEYWORDS([encoding guesser]) -AT_CHECK([supports_encodings ISO-8859-1]) +AT_CHECK([i18n-test supports_encodings ISO-8859-1]) AT_CHECK([printf '\204\061\225\063' | encoding-guesser-test Auto,ISO-8859-1], [0], [GB-18030 ]) @@ -112,7 +128,7 @@ AT_CLEANUP AT_SETUP([UTF-EBCDIC with byte order mark]) AT_KEYWORDS([encoding guesser]) -AT_CHECK([supports_encodings ISO-8859-1]) +AT_CHECK([i18n-test supports_encodings ISO-8859-1]) AT_CHECK([printf '\335\163\146\163' | encoding-guesser-test Auto,ISO-8859-1], [0], [UTF-EBCDIC ]) @@ -120,7 +136,7 @@ AT_CLEANUP AT_SETUP([EUC-JP as Auto,EUC-JP]) AT_KEYWORDS([encoding guesser]) -AT_CHECK([supports_encodings EUC-JP]) +AT_CHECK([i18n-test supports_encodings EUC-JP]) AT_CHECK([printf '\244\241 \244\242 \244\243 \244\244 \244\245 \244\246 \244\247 \244\250 \244\251 \244\252\n' | encoding-guesser-test Auto,EUC-JP], [0], [EUC-JP ]) @@ -128,7 +144,7 @@ AT_CLEANUP AT_SETUP([EUC-JP starting with ASCII as Auto,EUC-JP]) AT_KEYWORDS([encoding guesser]) -AT_CHECK([supports_encodings EUC-JP]) +AT_CHECK([i18n-test supports_encodings EUC-JP]) AT_CHECK([printf 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \244\241 \244\242 \244\243 \244\244 \244\245 \244\246 \244\247 \244\250 \244\251 \244\252\n' | encoding-guesser-test Auto,EUC-JP 32], [0], [EUC-JP ]) @@ -136,8 +152,16 @@ AT_CLEANUP AT_SETUP([UTF-8 with character split across input buffers]) AT_KEYWORDS([encoding guesser]) -AT_CHECK([supports_encodings ISO-8859-1]) +AT_CHECK([i18n-test supports_encodings ISO-8859-1]) AT_CHECK([printf '\343\201\201\343\201\202\343\201\203\343\201\204\343\201\205\343\201\206\343\201\207\343\201\210\343\201\211\343\201\212\343\201\201\343\201\202\343\201\203\343\201\204\343\201\205\343\201\206\343\201\207\343\201\210\343\201\211\343\201\212\n' | encoding-guesser-test Auto,ISO-8859-1 32], [0], [UTF-8 ]) AT_CLEANUP + +AT_SETUP([windows-1252 as Auto,UTF-8]) +AT_KEYWORDS([encoding guesser]) +AT_CHECK([i18n-test supports_encodings windows-1252]) +AT_CHECK([printf 'entr\351e' | encoding-guesser-test Auto,UTF-8 32], [0], + [windows-1252 +]) +AT_CLEANUP