Perforce: Submitted UTF-8 file with BOM header shows up as binary on review

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • 4.7.0
    • Affects Version/s: 4.1.1, 4.2.0, 4.3.1, 4.4.1, 4.4.2, 4.6.0
    • Component/s: None
    • Severity 2 - Major
    • 3

      Summary

      Whenever a file with a utf8 Perforce filetype containing a BOM header is submitted to depot, the Crucible review with this file says the file is binary.

      Steps to Reproduce

      1. Submit a file with utf8 Perforce filetype containing a BOM header to the depot
      2. Wait until this file is indexed
      3. Add this file into a new or existing review
      4. Try to open this file
      5. Crucible will say that the file is binary

      Expected Results

      Crucible should show the file source

      Actual Results

      Crucible is saying that the file is binary, offering the option to download it.

      Perforce versions

      1. 2015.2
      2. 2016.2

      Workarounds

      • Attach files manually to review works fine — review shows utf8 file as expected.
        OR
      • Change the Perforce filetype to text with removing BOM header

        1. File_Added_To_Review.png
          95 kB
          Felipe Kraemer
        2. File_In_Depot.png
          9 kB
          Felipe Kraemer
        3. File_Shown_As_Binary.png
          72 kB
          Felipe Kraemer
        4. Perforce_Version.png
          15 kB
          Felipe Kraemer
        5. Repo_Config1.png
          69 kB
          Felipe Kraemer
        6. Repo_Config2.png
          68 kB
          Felipe Kraemer
        7. TestClassUTF8.cs
          0.3 kB
          Felipe Kraemer

            Assignee:
            Marek Tokarski
            Reporter:
            Felipe Kraemer
            Votes:
            36 Vote for this issue
            Watchers:
            28 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 0.75h
                0.75h