Edit

thodg/libiconv/lib/aliases2.h

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2022-01-23 23:37:30
    Hash : 68ac8a9f
    Message : New EBCDIC encodings. Reported by Ulrich Schwab and Calvin Buckley via Jack Woehr. * NOTES: Mention how to enable EBCDIC encodings. * tests/IBM-*.TXT: New files. * tools/8bit_tab_to_h.c (main): Emit copyright header with year 2022. * tools/Makefile: Add rules for generating ebcdic*.h. * lib/ebcdic*.h: New files, automatically generated by tools/Makefile. * lib/ebcdic838.h: Tweak reverse mapping manually. * lib/ebcdic1160.h: Likewise. * lib/converters.h: Include all ebcdic*.h. * lib/encodings_zos.def: New file. * lib/genaliases2.c: Include encodings_zos.def. * lib/genflags.c: Likewise. * Makefile.devel (lib/aliases_zos.h lib/canonical_zos.h): New rule. (lib/flags.h, totally-clean): Update. * lib/aliases2.h: Include aliases_zos.h. * lib/iconv.c (USE_ZOS): New macro. Include encodings_zos.def, canonical_zos.h. * README, man/iconv_open.3: Document the IBM-* encodings. * tests/Makefile.in (check-extra-yes): Also test the EBCDIC encodings.

  • lib/aliases2.h
  • /*
     * Copyright (C) 1999-2003, 2008, 2022 Free Software Foundation, Inc.
     * This file is part of the GNU LIBICONV Library.
     *
     * The GNU LIBICONV Library is free software; you can redistribute it
     * and/or modify it under the terms of the GNU Lesser General Public
     * License as published by the Free Software Foundation; either version 2.1
     * of the License, or (at your option) any later version.
     *
     * The GNU LIBICONV Library is distributed in the hope that it will be
     * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     *
     * You should have received a copy of the GNU Lesser General Public
     * License along with the GNU LIBICONV Library; see the file COPYING.LIB.
     * If not, see <https://www.gnu.org/licenses/>.
     */
    
    #ifdef USE_AIX
    # if defined _AIX
    #  include "aliases_aix_sysaix.h"
    # else
    #  include "aliases_aix.h"
    # endif
    #endif
    #ifdef USE_OSF1
    # if defined __osf__
    #  include "aliases_osf1_sysosf1.h"
    # else
    #  include "aliases_osf1.h"
    # endif
    #endif
    #ifdef USE_DOS
    # include "aliases_dos.h"
    #endif
    #ifdef USE_ZOS
    # include "aliases_zos.h"
    #endif
    #ifdef USE_EXTRA
    # include "aliases_extra.h"
    #endif