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:
nhotta%netscape.com 1999-11-16 01:12:47 +00:00
parent 9083dc5eb0
commit 27a1f550a6

View File

@ -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;
};