Fixed bug #8097 and added a portability patch for BeOS. Thanks to duncan@be.os and david.gardiner@unisa.edu.au for their patches.
git-svn-id: svn://10.0.0.236/trunk@35150 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#ifdef XP_PC
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#ifdef XP_UNIX
|
||||
#ifdef XP_UNIX || defined(XP_BEOS)
|
||||
#include <locale.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h> // for isalpha, tolower & isspace
|
||||
|
||||
@@ -455,7 +455,7 @@ nsIWin32LocaleImpl::GetXPLocale(LCID winLCID, nsString* locale)
|
||||
|
||||
for(i=0;i<LENGTH_MAPPING_LIST;i++) {
|
||||
if (lang_id==iso_list[i].win_code) {
|
||||
for(j=0;strlen(iso_list[i].sublang_list[j].iso_code)!=0;i++) {
|
||||
for(j=0;strlen(iso_list[i].sublang_list[j].iso_code)!=0;j++) {
|
||||
if (sublang_id == iso_list[i].sublang_list[j].win_code) {
|
||||
PR_snprintf(rfc_locale_string,9,"%s-%s%c",iso_list[i].iso_code,
|
||||
iso_list[i].sublang_list[j].iso_code,0);
|
||||
|
||||
Reference in New Issue
Block a user