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

(fmt) missing support for printf %X formatting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • core-libs
    • None
    • x86
    • windows_2003


      We now have "printf" support in Tiger build 33.

      Happiness! Thank you, thank you, thank you.

      Unfortunately my first test examples was to use a format string
      that included "%X" and this failed.

      "%X" is a standard printf formatting string that means format an
      integer value in upper case hexadecimal.

      I realize that the same effect can be achieved with "%^x".

      However one of the goals of the printf support is to allow
      unreformed "C" developers to quickly reuse their old "C" printf
      skills. Unfortuantely "%X" is one of my favorite printf format
      commands and it is deeply wired into my dinosaur brain. I believe
      it is a fairly widely used format command.

      It is probably also be worth supporting "%G" and "%E". These produce
      scientific notation output using a capital "E". Again, the issue
      is that many developers may have "%G" or "%E" wired into their brains
      as a standard printf format.

      Thanks,

      ###@###.### 2004-01-08

            iris Iris Clark
            ghamiltosunw Graham Hamilton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: