Subject: pkg/36514: libiconv conflits with nl_langinfo (CODESET) returning "646" on OpenBSD 4.1
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <alnsn@yandex.ru>
List: pkgsrc-bugs
Date: 06/20/2007 08:05:00
>Number:         36514
>Category:       pkg
>Synopsis:       libiconv conflits with nl_langinfo (CODESET) returning "646" on OpenBSD 4.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 20 08:05:00 +0000 2007
>Originator:     Alexander Nasonov
>Release:        
>Organization:
>Environment:
OpenBSD obx1000 4.1 GENERIC#1435 i386
>Description:
This is a summary of a discussion on pkgsrc-users@
http://mail-index.netbsd.org/pkgsrc-users/2007/05/12/0002.html

1. nl_langinfo (CODESET) returns "646" which is a synonym of "ASCII".
2. libiconv is not available on OpenBSD by default (only in ports).
3. pkgsrc's libiconv doesn't support codeset "646".

As a result, some packages fail to compile on OpenBSD 4.1. For exampe, gtk2 cannot be build.

>How-To-Repeat:
I reproduced it firt time when I tried to build gtk2. Or simply execute
$ echo "hello" | /usr/pkg/bin/iconv -f UTF-8 -t 646

Currently, it displays

$ echo "hello" | /usr/pkg/bin/iconv -f UTF-8 -t 646
/usr/pkg/bin/iconv: conversion to 646 unsupported
/usr/pkg/bin/iconv: try '/usr/pkg/bin/iconv -l' to get the list of supported encodings

>Fix:
Modify libiconv to support codeset "646"?