X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Flocale%2FUnicodeData.py;h=eb0f3c33137f249a71b6b2cd70b2fff480b5257e;hb=e0a1864c7e4dbd4d482379b1bb6fd56b5ac68617;hp=6fe74cb8d90ee263a1681274bf2faa5fc2255548;hpb=e83bbf1f89de742ebf07a11984be8d38fd407527;p=pdclib diff --git a/functions/locale/UnicodeData.py b/functions/locale/UnicodeData.py index 6fe74cb..eb0f3c3 100644 --- a/functions/locale/UnicodeData.py +++ b/functions/locale/UnicodeData.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# -*- coding: -*- +# -*- coding: ascii -*- # Unicode Data Converter # # This file is part of the Public Domain C Library (PDCLib). @@ -109,7 +109,7 @@ try: #ifndef REGTEST #include <_PDCLIB_locale.h> - _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = { +const _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = { // { value,\tflags,\tlower,\tupper\t}, // name """) for line in in_file: @@ -129,7 +129,7 @@ try: num, bits, lower_case, upper_case, name)) out_file.write('};\n\n') out_file.write(""" -size_t _PDCLIB_wcinfo_size = sizeof(_PDCLIB_wcinfo) / sizeof(_PDCLIB_wcinfo[0]); +const size_t _PDCLIB_wcinfo_size = sizeof(_PDCLIB_wcinfo) / sizeof(_PDCLIB_wcinfo[0]); #endif #ifdef TEST