Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1126

Windows timezone fact uses strftime instead of wcsftime.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 3.0.1
    • Fix Version/s: FACT 3.0.2
    • Component/s: Windows
    • Labels:
    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2015-07-22

      Description

      When Windows is configured to use a timezone that has a localized name, like Mitteleuropäische Sommerzeit, Facter reports the timezone as Mitteleurop‰ische Sommerzeit in its output.

      When the facts are sent to a Puppet master, the master reports an invalid UTF-8 sequence for the string.

      I believe this is a result of using strftime instead of the correct wcsftime and then converting the result into UTF-8. Also, the return value of wcsftime should be used to size the string.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                peter.huene Peter Huene
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour
                    1h