[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: config.charset support for OpenBSD
From: |
Bruno Haible |
Subject: |
Re: config.charset support for OpenBSD |
Date: |
Wed, 14 Nov 2007 13:10:21 +0100 |
User-agent: |
KMail/1.5.4 |
Ben Pfaff wrote:
> Here it is:
>
> locale name locale charmap nl_langinfo(CODESET) locale_charset()
>
> C <error> 646 646 bug
> bg_BG.CP1251 <error> CP1251 CP1251
> ...
> If I add the line
> echo "646 ASCII"
> to the openbsd section in config.charset, then that fixes the C locale.
Thank you. I'm applying this patch to gnulib and libiconv:
2007-11-14 Bruno Haible <address@hidden>
* lib/config.charset: Update for OpenBSD 4.1.
Reported and helped by Ben Pfaff <address@hidden>.
*** lib/config.charset 19 Jun 2006 10:40:15 -0000 1.26
--- lib/config.charset 14 Nov 2007 12:05:30 -0000
***************
*** 1,7 ****
#! /bin/sh
# Output a system dependent table of character encoding aliases.
#
! # Copyright (C) 2000-2004, 2006 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License as published
--- 1,7 ----
#! /bin/sh
# Output a system dependent table of character encoding aliases.
#
! # Copyright (C) 2000-2004, 2006-2007 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License as published
***************
*** 32,51 ****
#
# name MIME? used by which systems
# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin
! # ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd
netbsd darwin
! # ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd
netbsd darwin
# ISO-8859-3 Y glibc solaris
! # ISO-8859-4 Y osf solaris freebsd netbsd darwin
! # ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd
netbsd darwin
# ISO-8859-6 Y glibc aix hpux solaris
! # ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd darwin
# ISO-8859-8 Y glibc aix hpux osf solaris
# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin
! # ISO-8859-13 glibc netbsd darwin
# ISO-8859-14 glibc
! # ISO-8859-15 glibc aix osf solaris freebsd darwin
! # KOI8-R Y glibc solaris freebsd netbsd darwin
! # KOI8-U Y glibc freebsd netbsd darwin
# KOI8-T glibc
# CP437 dos
# CP775 dos
--- 32,51 ----
#
# name MIME? used by which systems
# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin
! # ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd
netbsd openbsd darwin
! # ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd
netbsd openbsd darwin
# ISO-8859-3 Y glibc solaris
! # ISO-8859-4 Y osf solaris freebsd netbsd openbsd darwin
! # ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd
netbsd openbsd darwin
# ISO-8859-6 Y glibc aix hpux solaris
! # ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd
openbsd darwin
# ISO-8859-8 Y glibc aix hpux osf solaris
# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin
! # ISO-8859-13 glibc netbsd openbsd darwin
# ISO-8859-14 glibc
! # ISO-8859-15 glibc aix osf solaris freebsd netbsd openbsd
darwin
! # KOI8-R Y glibc solaris freebsd netbsd openbsd darwin
! # KOI8-U Y glibc freebsd netbsd openbsd darwin
# KOI8-T glibc
# CP437 dos
# CP775 dos
***************
*** 58,64 ****
# CP862 dos
# CP864 dos
# CP865 dos
! # CP866 freebsd netbsd darwin dos
# CP869 dos
# CP874 woe32 dos
# CP922 aix
--- 58,64 ----
# CP862 dos
# CP864 dos
# CP865 dos
! # CP866 freebsd netbsd openbsd darwin dos
# CP869 dos
# CP874 woe32 dos
# CP922 aix
***************
*** 71,77 ****
# CP1125 dos
# CP1129 aix
# CP1250 woe32
! # CP1251 glibc solaris netbsd darwin woe32
# CP1252 aix woe32
# CP1253 woe32
# CP1254 woe32
--- 71,77 ----
# CP1125 dos
# CP1129 aix
# CP1250 woe32
! # CP1251 glibc solaris netbsd openbsd darwin woe32
# CP1252 aix woe32
# CP1253 woe32
# CP1254 woe32
***************
*** 398,403 ****
--- 398,413 ----
echo "BIG5 BIG5"
echo "SJIS SHIFT_JIS"
;;
+ openbsd*)
+ echo "646 ASCII"
+ echo "ISO8859-1 ISO-8859-1"
+ echo "ISO8859-2 ISO-8859-2"
+ echo "ISO8859-4 ISO-8859-4"
+ echo "ISO8859-5 ISO-8859-5"
+ echo "ISO8859-7 ISO-8859-7"
+ echo "ISO8859-13 ISO-8859-13"
+ echo "ISO8859-15 ISO-8859-15"
+ ;;
darwin[56]*)
# Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore
# localcharset.c falls back to using the full locale name