Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2176062 | 6u13 | Paul Klingaman | P2 | Closed | Fixed | b93 |
The JRE installer should ping back OS Locale information. This can easily be accomplished by altering UpdateConfig.cpp::SendHeadRequest().
We'll need to define a constant for the ping element in the header:
# define LOCALE_OS "evar21"
Then, we'd need to write a supporting function that gets the machine Locale and create a pointer to it, e.g.:
static TCHAR lpszLocale[20];
::GetOSLocale(lpszLocale, sizeof(lpszLocale));
Finally, we'd need to add the element via a XmlAddElement call in the .cpp:
XmlAddElement(szBuffer, LOCALE_OS, lpszLocale);
We should also change all GetUserDefaultLCID() calls in the 6u16 wrapper, jinstall, etc. src code to use GetUserDefaultUILanguage().
We'll need to define a constant for the ping element in the header:
# define LOCALE_OS "evar21"
Then, we'd need to write a supporting function that gets the machine Locale and create a pointer to it, e.g.:
static TCHAR lpszLocale[20];
::GetOSLocale(lpszLocale, sizeof(lpszLocale));
Finally, we'd need to add the element via a XmlAddElement call in the .cpp:
XmlAddElement(szBuffer, LOCALE_OS, lpszLocale);
We should also change all GetUserDefaultLCID() calls in the 6u16 wrapper, jinstall, etc. src code to use GetUserDefaultUILanguage().
- backported by
-
JDK-2176062 Need to improve Locale Ping implementation and change GetUserDefaultUILanguage() calls in 6uN.
-
- Closed
-