Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6818571

Need to improve Locale Ping implementation and change GetUserDefaultUILanguage() calls in 6uN.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • 7
    • 6u14
    • install
    • b64
    • x86
    • windows
    • Verified

        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().

              paulk Paul Klingaman (Inactive)
              paulk Paul Klingaman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: