* git has issues with international characters in branch names @ 2019-05-05 10:27 Ax Da 2019-05-05 18:14 ` brian m. carlson 0 siblings, 1 reply; 3+ messages in thread From: Ax Da @ 2019-05-05 10:27 UTC (permalink / raw) To: git [-- Attachment #1: Type: text/plain, Size: 612 bytes --] The documentation doesn't seem to be clear about which characters are allowed as branch names. We have been using umlauts and apostrophes in our branch names, and both are having issues: - apostrophe: git removes the apostrophes from the branch name when creating/pushing a branch. In our TFS server repository we're having the same branch name twice: Once with apostrophes, and once without. And I don't seem to be able to delete the one without apostrophes. - umlauts: The umlauts are not correctly interpreted when SMB is used. "gemäss" becomes "gem<C3><A4>ss". (See images attached.) [-- Attachment #2: branch name with umlauts 001.png --] [-- Type: image/png, Size: 40670 bytes --] [-- Attachment #3: branch name with umlauts 002.png --] [-- Type: image/png, Size: 28458 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git has issues with international characters in branch names 2019-05-05 10:27 git has issues with international characters in branch names Ax Da @ 2019-05-05 18:14 ` brian m. carlson 2019-05-06 4:32 ` Jacob Keller 0 siblings, 1 reply; 3+ messages in thread From: brian m. carlson @ 2019-05-05 18:14 UTC (permalink / raw) To: Ax Da; +Cc: git [-- Attachment #1: Type: text/plain, Size: 1775 bytes --] On Sun, May 05, 2019 at 12:27:31PM +0200, Ax Da wrote: > The documentation doesn't seem to be clear about which characters are allowed as branch names. > > We have been using umlauts and apostrophes in our branch names, and both are having issues: > > - apostrophe: > git removes the apostrophes from the branch name when creating/pushing a branch. > In our TFS server repository we're having the same branch name twice: Once with apostrophes, > and once without. And I don't seem to be able to delete the one without apostrophes. > > - umlauts: > The umlauts are not correctly interpreted when SMB is used. "gemäss" becomes "gem<C3><A4>ss". > (See images attached.) I don't think Git itself has a problem with Unicode. I literally just the other day created a branch with a Unicode apostrophe and pushed it to GitHub successfully using macOS. It is possible that TFS doesn't like them; that depends on the hosting solution you use. If you're seeing problems with TFS, I'd reach out to Microsoft for assistance. It looks also like the Git CMD interface isn't rendering them properly. I would try using Git Bash instead, and if that doesn't work, please report that to Git for Windows. The folks there will have a better idea about the portability issue that's occurring; I expect there's a wart there somewhere between UTF-8 and UTF-16. It may also be that SMB is not a good choice for sharing repositories if you require internationalization, or you may need to change the character set your SMB server uses. You may also, depending on which version of Windows you are using, have better luck at the command line with Windows Subsystem for Linux. -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 868 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git has issues with international characters in branch names 2019-05-05 18:14 ` brian m. carlson @ 2019-05-06 4:32 ` Jacob Keller 0 siblings, 0 replies; 3+ messages in thread From: Jacob Keller @ 2019-05-06 4:32 UTC (permalink / raw) To: brian m. carlson, Ax Da, Git mailing list On Sun, May 5, 2019 at 11:16 AM brian m. carlson <sandals@crustytoothpaste.net> wrote: > > On Sun, May 05, 2019 at 12:27:31PM +0200, Ax Da wrote: > > The documentation doesn't seem to be clear about which characters are allowed as branch names. > > > > We have been using umlauts and apostrophes in our branch names, and both are having issues: > > > > - apostrophe: > > git removes the apostrophes from the branch name when creating/pushing a branch. > > In our TFS server repository we're having the same branch name twice: Once with apostrophes, > > and once without. And I don't seem to be able to delete the one without apostrophes. > > > > - umlauts: > > The umlauts are not correctly interpreted when SMB is used. "gemäss" becomes "gem<C3><A4>ss". > > (See images attached.) > > I don't think Git itself has a problem with Unicode. I literally just > the other day created a branch with a Unicode apostrophe and pushed it > to GitHub successfully using macOS. It is possible that TFS doesn't like > them; that depends on the hosting solution you use. If you're seeing > problems with TFS, I'd reach out to Microsoft for assistance. > > It looks also like the Git CMD interface isn't rendering them properly. > I would try using Git Bash instead, and if that doesn't work, please > report that to Git for Windows. The folks there will have a better idea > about the portability issue that's occurring; I expect there's a wart > there somewhere between UTF-8 and UTF-16. It may also be that SMB is not > a good choice for sharing repositories if you require > internationalization, or you may need to change the character set your > SMB server uses. In my experience, the regular command prompt will have significant troubles displaying UTF-8 characters. I had better luck in Git Bash, but I don't recall if I had to do something for it. Thanks, Jake > > You may also, depending on which version of Windows you are using, have > better luck at the command line with Windows Subsystem for Linux. > -- > brian m. carlson: Houston, Texas, US > OpenPGP: https://keybase.io/bk2204 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-06 4:32 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-05-05 10:27 git has issues with international characters in branch names Ax Da 2019-05-05 18:14 ` brian m. carlson 2019-05-06 4:32 ` Jacob Keller
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).