mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 11:38:16 +00:00
Putting a debug printf so the tester can see the real locale used for the sorting, bug 18338, r=tao.
This commit is contained in:
parent
9083dc5eb0
commit
27a1f550a6
@ -30,6 +30,7 @@
|
||||
#include "nsIPosixLocale.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
#define DEBUG_UNIX_COLLATION
|
||||
|
||||
static NS_DEFINE_IID(kICollationIID, NS_ICOLLATION_IID);
|
||||
static NS_DEFINE_CID(kPosixLocaleFactoryCID, NS_POSIXLOCALEFACTORY_CID);
|
||||
@ -129,6 +130,14 @@ nsresult nsCollationUnix::Initialize(nsILocale* locale)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(DEBUG_UNIX_COLLATION)
|
||||
char* tmp = mLocale.ToNewCString();
|
||||
if (NULL != tmp) {
|
||||
printf("nsCollationUnix::Initialize mLocale = %s\n", tmp);
|
||||
delete[] tmp;
|
||||
}
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user