Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-6209

Japanese characters is garbled in diff view and cannot discard hunk/line with error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 1.9.6.1
    • None
    • Severity 3 - Minor

      Summary

      Japanese characters is garbled in diff view and cannot discard hunk/line with error.

      Environment

      • Windows 7 (SP1), SourceTree 1.9.6.1
      • Windows 10, SourceTree 1.9.6.1 with Embedded Git 2.8.1

      Steps to Reproduce

      1. Set ‘Default text encoding’ to ‘shift_jis’ in ST (Tools > Options)
      2. Create a file encoded with shift_is and commit it in local repo.
      3. Edit the file to change a few lines in Japanese.
      4. ST detects the changes and choose ‘Stage hunk’ (or ‘Stage line’)
      5. the characters are garbled in diff view
      6. Then choose ’Discard hunk’ (or ‘Discard line’, Error occurs saying that ‘git apply’ failed with code 1

      The error is similar with SRCTREEWIN-3810, but setting default encoding doesn’t resolve this problem.

      Expected Results

      Japanese characters should be shown correctly when specified default encoding.

      Actual Results

      Japanese characters is garbled and user cannot edit/commit files by hunk.

      Workaround

      Not found.

        1. git apply error.png
          git apply error.png
          207 kB
        2. git internal diff 01.png
          git internal diff 01.png
          183 kB
        3. git internal diff 02.png
          git internal diff 02.png
          183 kB

              mcorsaro Mike Corsaro (Inactive)
              ynakajima Yumi Nakajima (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: