buglibiconv - Bugs: bug #28084, Please add a export function to...

 
 

bug #28084: Please add a export function to provide an errno in libiconv.

Submitted by:  None
Submitted on:  Tue 24 Nov 2009 03:55:36 AM UTC  
 
Category: OtherSeverity: 3 - Normal
Item Group: NoneStatus: Works For Me
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 30 Nov 2009 09:01:45 PM UTC, comment #3:

> cygwin.dll __errno
> msvcrt.dll _errno


Cygwin and native Windows are totally, entirely, completely
different runtime environments for programs. The only thing
that they share are the file format for executables.

Cygwin DLLs and native MSVCRT DLLs are not interoperable!!

> Only in dll, I cannot distinguish it from the application side


Your application must not, when built with Cygwin, link or open
MSVCRT linked DLLs, and must not, when built with MSVCRT,
link or open Cygwin linked DLLs. You must find ways of not doing
these mistakes.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Mon 30 Nov 2009 11:50:05 AM UTC, comment #2:

cygwin.dll __errno
msvcrt.dll _errno

A user makes cygiconv-2.dll iconv.dll and
With libiconv.dll as iconv.dll and
may rearrange a file.

Only in dll, I cannot distinguish it from the application side

/* include/iconv.h.in , include/iconv.h.build.in */
#if defined(_WIN32)
extern LIBICONV_DLL_EXPORTED int iconv_get_errno(void);
#endif

/* lib/iconv.c */
#if defined(_WIN32)
int iconv_get_errno(void)
{
return errno;
}
#endif

Anonymous
Tue 24 Nov 2009 10:10:15 PM UTC, comment #1:

> we need a cord to access plural Dll


I don't understand what you mean here.

> access an errno by build environment.
> Please add a export function to provide an errno in libiconv.


errno is provided by the MSVC runtime library. You don't need
a function to access it. But you must make sure that you don't
mix libraries and executables that are built against different
runtime libraries. Everything that is linked together must be
built against the same runtime library.

See http://www.gnu.org/software/gettext/FAQ.html#windows_howto.
This is about libintl; but the situation for libiconv is the
same.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Tue 24 Nov 2009 03:55:36 AM UTC, original submission:

Under the windows environment, we need a cord to access plural Dll to access an errno by build environment.

Please add a export function to provide an errno in libiconv.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 Nov 2016 12:38:40 AM UTChaibleCategoryNone=>Other
    Tue 24 Nov 2009 10:10:15 PM UTChaibleStatusNone=>Works For Me
      Assigned toNone=>haible
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1