Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-5106

BB thrown off by UTF16LE byte order mark? (BB-6396)

    XMLWordPrintable

Details

    Description

      1. Create a .ps1 (PowerShell) file like so in PS: "get-date" > "date.ps1"
      2. PS creates a new file with .NET's default encoding
      3. Push file to BB.

      Now BB thinks our date.ps1 file is a binary file. It should detect the encoding and show it as a regular PowerShell file (maybe with a hint at the fact that the encoding isn't ASCII/UTF8).

      1. On Win, re-encode the date.ps1 file to use UTF8.
      2. Push again.

      Now BB will correctly detect date.ps1 as a PowerShell file.

      Attachments

        Activity

          People

            Unassigned Unassigned
            4e5965514542 guillermooo
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: