maint: run update-copyright for 2014.
[m4/ericb.git] / tests / iso8859.m4
blob59fb8a4b1973f5ebaa35a535c67ccb4a38e46e95
1 dnl Copyright (C) 2006-2007, 2010, 2013-2014 Free Software Foundation,
2 dnl Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it
5 dnl with or without modifications, as long as this notice is preserved.
6 # Testing quotes
7 DEFINE                  define(`test', `TEST')# eol
8 CHANGEQUOTE(«,»)        changequote(«,»)# eol
9 0 test                  # TEST
10 1 «test»                        # test
11 2 ««test»»              # «test»
12 3 «««test»»»            # ««test»»
13 dnl
14 changequote()dnl
15 CHANGEQUOTE(«««,»»»)    changequote(«««,»»»)# eol
16 0 test                  # TEST
17 1 «test»                # «TEST»
18 2 ««test»»              # ««TEST»»
19 3 «««test»»»                    # test
20 changequote`'dnl
21 dnl
22 dnl
23 # Test use of all iso8859 characters except ^Z (win32 EOF) and NUL  ` '
24 define(`noquotes', `\x01\x02\x03\x04\x05\x06\a     \n
25 \b\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\e\x1c\x1d\x1e\x1f !"#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_abcdefghijklmnopqrstuvwxyz{|}~\x7f€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ')dnl
26 dnl
27 `Length of string is: 'len(defn(`noquotes'))
28 `Comparing strings: 'ifelse(defn(`noquotes'), `\x01\x02\x03\x04\x05\x06\a  \n
29 \b\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\e\x1c\x1d\x1e\x1f !"#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_abcdefghijklmnopqrstuvwxyz{|}~\x7f€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ', `MATCH', `NO MATCH')
30 dnl
31 dnl
32 # NUL passes through now!
33 define(`NUL_bug', `This will be seen.\0This will never be seen')dnl
34 len(NUL_bug)