bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/2528] windres language enhancement and fix


From: dannysmith at users dot sourceforge dot net
Subject: [Bug binutils/2528] windres language enhancement and fix
Date: 22 Apr 2006 08:45:51 -0000

------- Additional Comments From dannysmith at users dot sourceforge dot net  
2006-04-22 08:45 -------
Thanks for the patch.

Please see also:
http://sources.redhat.com/bugzilla/show_bug.cgi?id=576

Do you have a copyright-assignment on file for binutils.  If no you will need 
to complete some paperwork.

Also, wouldn't this be a better way to get codepage for langid on windows?

#ifdef _WIN32
#include <windows.h>

static unsigned int
codepage_from_langid (unsigned short langid)
{
  const int buf_len = 6;
  char cp_string [buf_len];
  int c;
  memset (cp_string, 0, buf_len);
  c = GetLocaleInfoA (MAKELCID (langid, SORT_DEFAULT),
                      LOCALE_IDEFAULTANSICODEPAGE,
                      cp_string,  buf_len);
  /* If codepage data for an LCID is not installed on users's system,
     GetLocaleInfo returns an empty string.  Fall back to system ANSI
     default. */
  if ( c == 0 )
    return CP_ACP;
  return strtoul (cp_string, 0, 10);
}
#endif

Danny

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2528

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]