Subject: Re: iconv_open() / UCS-2-INTERNAL question
To: None <email@example.com>
From: Christian Biere <firstname.lastname@example.org>
Date: 01/29/2007 05:18:54
Chuck Cranor wrote:
> i updated my version of gphoto2 to libgphoto2-2.3.1 and the
> PTP2 driver stopped working due to iconv_open() failing.
> if you look at:
> you will see that they are doing code that basically boils
> down to calling iconv_open(3) with "UCS-2-INTERNAL" ... but we
> don't appear to have a "UCS-2-INTERNAL" so clearly the new gphoto 2.3.1
> code is wrong. What should they be doing here? they appear to
> be trying to address some sort of endian problem (see comment I copied
> >from them in the test code below).
I already sent a reply (accidently off-list), anyway: "utf-16" instead should work.
Besides this should be checked at run-time not at compile-time (think: conversion
modules could be added to iconv anytime).