mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ludovic BOUE <ludovic.boue@gmail.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] Install a iconv libraries
Date: Tue, 01 Nov 2011 02:07:59 +0100	[thread overview]
Message-ID: <4EAF466F.5030203@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2237 bytes --]

Dear All,

I'm trying to fix an issue with my OSELAS.BSP-Phytec-phyCORE-12. My program returns empty string from iconv function. It working perfectly on my laptop and any PC.


Deb1:  Autoconf:  -- SDT : Service Description Table (id 0x42)--
Deb1:  Autoconf:  We discovered a new service, service_id : 0x201
Deb1:  Autoconf:      free_ca_mode : 0x0
Deb1:  Autoconf:  service type: 0x1 : Television
Deb1:  Autoconf:  service_name : "" (name encoding : ISO8859-9)

I allready copy modules by hand to
/usr/lib/gconv/

root@eyetv:/persistent ll -h /usr/lib/gconv/
drwxr-xr-x    2 root     root            0 Jan  1 02:33 .
drwxr-xr-x    5 root     root            0 Jan  1 01:43 ..
-rwxr-xr-x    1 root     root         9.3K Jan  1 01:43 ISO8859-1.so
-rwxr-xr-x    1 root     root         9.3K Jan  1 01:43 ISO8859-15.so
-rwxr-xr-x    1 root     root         9.3K Jan  1 02:33 ISO8859-9.so
-rwxr-xr-x    1 root     root         9.3K Jan  1 01:43 UNICODE.so
-rwxr-xr-x    1 root     root        13.3K Jan  1 01:43 UTF-16.so
-rwxr-xr-x    1 root     root         9.3K Jan  1 01:43 UTF-32.so
-rwxr-xr-x    1 root     root        17.3K Jan  1 01:43 UTF-7.so


I created a binary file from the "gconv-modules" text file with this simple command line:

/persistent/iconvconfig --nostdlib
--output=/usr/lib/gconv/gconv-modules.cache /usr/lib/gconv/ =>   OK

But I can see any ISO8859 modules here:

/persistent ./iconv_prog -l
The following list contain all the coded character sets known.  This does
not necessarily mean that all combinations of these names can be used for
the FROM and TO command line parameters.  One coded character set can be
listed with several different names (aliases).

    10646-1:1993, 10646-1:1993/UCS4, ANSI_X3.4-1968, ANSI_X3.4-1986, ANSI_X3.4,
    ASCII, CP367, CSASCII, CSUCS4, IBM367, ISO-10646, ISO-10646/UCS2,
    ISO-10646/UCS4, ISO-10646/UTF-8, ISO-10646/UTF8, ISO-IR-6, ISO-IR-193,
    ISO646-US, ISO_646.IRV:1991, OSF00010020, OSF00010100, OSF00010101,
    OSF00010102, OSF00010104, OSF00010105, OSF00010106, OSF05010001, UCS-2,
    UCS-2BE, UCS-2LE, UCS-4, UCS-4BE, UCS-4LE, UCS2, UCS4, UNICODEBIG,
    UNICODELITTLE, US-ASCII, US, UTF-8, UTF8, WCHAR_T

What else can I do to fix that ?

Regards,
Ludovic




[-- Attachment #2: glibc.make.patch --]
[-- Type: text/x-patch, Size: 534 bytes --]

--- glibc.make.old	2011-10-31 22:24:44.648491649 +0100
+++ glibc.make	2011-10-31 22:25:53.520491657 +0100
@@ -156,6 +156,10 @@
 	@$(call install_copy_toolchain_lib, glibc, gconv/ISO8859-15.so, /usr/lib/gconv)
 endif
 
+ifdef PTXCONF_GLIBC_GCONV_ISO88599
+	@$(call install_copy_toolchain_lib, glibc, gconv/ISO8859-9.so, /usr/lib/gconv)
+endif
+
 ifdef PTXCONF_GLIBC_GCONV_UTF
 	@$(call install_copy_toolchain_lib, glibc, gconv/UNICODE.so, /usr/lib/gconv)
 	@$(call install_copy_toolchain_lib, glibc, gconv/UTF-16.so, /usr/lib/gconv)



[-- Attachment #3: glibc.in.patch --]
[-- Type: text/x-patch, Size: 465 bytes --]

--- glibc.in.old	2011-10-31 22:19:57.204491620 +0100
+++ glibc.in	2011-10-31 22:25:44.092491656 +0100
@@ -213,6 +213,14 @@
 	  Alphabet No.9) encoding modules into gconv, this should be ok for most
 	  western languages
 
+config GLIBC_GCONV_ISO88599
+	bool
+	prompt "gconv modules for ISO8859-9"
+	select GLIBC_GCONF_BASE
+	default y
+	help
+	  install the gconv modules for iso8859-9 conversion
+
 config GLIBC_GCONV_UTF
 	bool
 	prompt "gconv modules for UTF"



[-- Attachment #4: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2011-11-01  1:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-01  1:07 Ludovic BOUE [this message]
2011-11-01 16:28 ` Robert Schwebel
2011-11-03  9:13   ` Bernhard Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EAF466F.5030203@gmail.com \
    --to=ludovic.boue@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox