Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 384
    • Issues 384
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #468
Closed
Open
Issue created Aug 02, 2015 by Sven Strickroth@mrtuxOwner

Non-ASCII characters in user info aren't stored correctly

By ajrie... on June 12, 2010 03:06 (imported from Google Code)


What steps will reproduce the problem?

  1. In a Windows Explorer window, right-click on a directory under version control and select the option "TortoiseGit -> Settings"
  2. In the Git->Config section enter the user info name "José" (note the accented é)
  3. Click OK to save the changes.
  4. Repeat step 1, go to the Git->Config section again and check the stored user name. It is now "Jos".

What is the expected output? What do you see instead?
I would expect my user name to stay as "José", retaining the non-ASCII character.

What version of the product are you using? On what operating system?

TortoiseGit 1.5.2.0
git version 1.7.0.2.msysgit.0

Please provide any additional information below.

I took a second test using the user name "李安和". In this case, the name became "???" when I re-opened the Settings dialog.

Actually, I have found that msysgit and TortoiseGit have a lot of problems with non-ASCII characters, not only this particular problem I am describing here (I can give more details if anyone is interested). Such problems are even worse when using Git GUI, so I'm not sure if the problem is in the TortoiseGit layer or in the underlying msysgit representation.

My guess is that TortoiseGit must be using some mechanism based on the Win32 API to read and write from the edit boxes in the dialog, and maybe it should translate between wide-character UTF-16-encoded strings, as used by the Win32 API, and the multibyte UTF-8-encoded strings that msysgit presumably uses. Just an idea, not sure if it makes sense.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking