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

(process) subprocess environment sort order differs from Windows native sort order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 5.0u7, 6
    • core-libs
    • b03
    • generic, x86
    • windows, windows_xp
    • Verified

        As specified in the Microsoft documentation,

        http://windowssdk.msdn.microsoft.com/en-us/library/ms682009.aspx

        "All strings in the environment block must be sorted alphabetically by name. The sort is case-insensitive, Unicode order, without regard to locale"

        Unfortunately, this specification does not make it clear whether a character between
        the lower-case range and the upper-case range, such as "_", should sort
        before or after the alphabetic characters. An empirical test shows that it
        Windows (actually cmd.exe's "set" command) sorts it after, while Java's
        implementation sorts it before.

              martin Martin Buchholz
              martin Martin Buchholz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: