Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1648 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16939 invoked from network); 18 May 2003 01:09:07 -0000 Received: from unknown (HELO vckyb4.nw.wakwak.com) (211.9.231.145) by pb1.pair.com with SMTP; 18 May 2003 01:09:07 -0000 Received: from at.wakwak.com (at.wakwak.com [211.9.230.135:25]) by vckyb4.nw.wakwak.com (Postfix) with ESMTP id 98EBD3FE06; Sun, 18 May 2003 10:09:06 +0900 (JST) Received: from at.wakwak.com (z193.61-115-68.ppp.wakwak.ne.jp [61.115.68.193]) by at.wakwak.com (8.12.9/8.12.9/2003-03-31) with SMTP id h4I196H5013274; Sun, 18 May 2003 10:09:06 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Date: Sun, 18 May 2003 10:12:03 +0900 X-Mailer: EdMax Ver2.85.3F MIME-Version: 1.0 To: "l0t3k" Cc: internals@lists.php.net Message-ID: <20030518101203WUqOgo@at.wakwak.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In-Reply-To: <20030517235051.77271.qmail@pb1.pair.com> References: <20030517235051.77271.qmail@pb1.pair.com> Subject: Re: [PHP-DEV] Libiconv and errno (Win32) From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) Hi, "l0t3k" wrote: > im developing an extension under Win32 which links to libiconv, but i'm > having a slight problem. i have a conversion which fails (iconv returns > (size_t)-1), but errno is set to 0. > any clues as to what is happening ? > > not that it matters, but the conversion is from ISO-8859-1 to UTF-16 . That's most likely iconv.dll and your extension are linked to different libc dlls since errno variable is both dll specific and thread specific. It also fails to set a correct value to errno if your iconv.dll is statically linked to MS libc. Moriyoshi