Maintainer cleanups.
[m4.git] / tests / iso8859.m4
blob903db6f101c20f68390615ed0a3d14093bcb8bd1
1 dnl Copyright (C) 2006, 2007 Free Software Foundation
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it
4 dnl with or without modifications, as long as this notice is preserved.
5 # Testing quotes
6 DEFINE                  define(`test', `TEST')# eol
7 CHANGEQUOTE(«,»)        changequote(«,»)# eol
8 0 test                  # TEST
9 1 «test»                        # test
10 2 ««test»»              # «test»
11 3 «««test»»»            # ««test»»
12 dnl
13 changequote()dnl
14 CHANGEQUOTE(«««,»»»)    changequote(«««,»»»)# eol
15 0 test                  # TEST
16 1 «test»                # «TEST»
17 2 ««test»»              # ««TEST»»
18 3 «««test»»»                    # test
19 changequote`'dnl
20 dnl
21 dnl
22 # Test use of all iso8859 characters except ^Z (win32 EOF) and NUL  ` '
23 define(`noquotes', `\x01\x02\x03\x04\x05\x06\a     \n
24 \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
25 dnl
26 `Length of string is: 'len(defn(`noquotes'))
27 `Comparing strings: 'ifelse(defn(`noquotes'), `\x01\x02\x03\x04\x05\x06\a  \n
28 \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')
29 dnl
30 dnl
31 # NUL passes through now!
32 define(`NUL_bug', `This will be seen.\0This will never be seen')dnl
33 len(NUL_bug)