mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Install a iconv libraries
@ 2011-11-01  1:07 Ludovic BOUE
  2011-11-01 16:28 ` Robert Schwebel
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic BOUE @ 2011-11-01  1:07 UTC (permalink / raw)
  To: ptxdist

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] Install a iconv libraries
  2011-11-01  1:07 [ptxdist] Install a iconv libraries Ludovic BOUE
@ 2011-11-01 16:28 ` Robert Schwebel
  2011-11-03  9:13   ` Bernhard Walle
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Schwebel @ 2011-11-01 16:28 UTC (permalink / raw)
  To: ptxdist

Hi,

On Tue, Nov 01, 2011 at 02:07:59AM +0100, Ludovic BOUE wrote:
> My program returns empty string from iconv function.

I think iconv is not well tested (if at all) in ptxdist, so any help in
that area is welcome!

rsc
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] Install a iconv libraries
  2011-11-01 16:28 ` Robert Schwebel
@ 2011-11-03  9:13   ` Bernhard Walle
  0 siblings, 0 replies; 3+ messages in thread
From: Bernhard Walle @ 2011-11-03  9:13 UTC (permalink / raw)
  To: ptxdist

* Robert Schwebel <r.schwebel@pengutronix.de> [2011-11-01 17:28]:
> 
> On Tue, Nov 01, 2011 at 02:07:59AM +0100, Ludovic BOUE wrote:
> > My program returns empty string from iconv function.
> 
> I think iconv is not well tested (if at all) in ptxdist, so any help in
> that area is welcome!

Basically it works. I use it to convert utf-8 to iso8859-1 for a LCD
display. The only special thing I did in ptxdist is to generate an
utf-8 locale.

My ptxdist project is at https://bitbucket.org/bwalle/ptxdist-vetero,
and my adjusted locales.in and locales.make are at 
https://bitbucket.org/bwalle/ptxdist-vetero/src/54844be01185/rules.

HTH a bit.


Regards,
Bernhard

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-03  9:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-01  1:07 [ptxdist] Install a iconv libraries Ludovic BOUE
2011-11-01 16:28 ` Robert Schwebel
2011-11-03  9:13   ` Bernhard Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox