iconv_open-solaris.gperf 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* Character set conversion.
  2. Copyright (C) 2007, 2009, 2020-2021 Free Software Foundation, Inc.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU Lesser General Public License as published by
  5. the Free Software Foundation; either version 2, or (at your option)
  6. any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public License along
  12. with this program; if not, see <https://www.gnu.org/licenses/>. */
  13. struct mapping { int standard_name; const char vendor_name[10 + 1]; };
  14. %struct-type
  15. %language=ANSI-C
  16. %define slot-name standard_name
  17. %define hash-function-name mapping_hash
  18. %define lookup-function-name mapping_lookup
  19. %readonly-tables
  20. %global-table
  21. %define word-array-name mappings
  22. %pic
  23. %%
  24. # On Solaris 10, look in the "iconv -l" output. Some aliases are advertised but
  25. # not actually supported by the iconv() function and by the 'iconv' program.
  26. # For example:
  27. # $ echo abc | iconv -f 646 -t ISO-8859-1
  28. # Not supported 646 to ISO-8859-1
  29. # $ echo abc | iconv -f 646 -t ISO8859-1
  30. $ abc
  31. ASCII, "646"
  32. ISO-8859-1, "ISO8859-1"
  33. ISO-8859-2, "ISO8859-2"
  34. ISO-8859-3, "ISO8859-3"
  35. ISO-8859-4, "ISO8859-4"
  36. ISO-8859-5, "ISO8859-5"
  37. ISO-8859-6, "ISO8859-6"
  38. ISO-8859-7, "ISO8859-7"
  39. ISO-8859-8, "ISO8859-8"
  40. ISO-8859-9, "ISO8859-9"
  41. ISO-8859-15, "ISO8859-15"
  42. CP1251, "ansi-1251"