git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: rebase when an author uses accents in name on MacOSx
@ 2012-05-30 22:16 Lanny Ripple
  2012-05-30 23:45 ` Junio C Hamano
  0 siblings, 1 reply; 21+ messages in thread
From: Lanny Ripple @ 2012-05-30 22:16 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1664 bytes --]

Hello,

I've come across behavior I'd say is a bug.

We have a developer with an accent in his name, Rémi Leblond.  Very recently we stopped being able to rebase getting the error

  lanny(master);<work/IdeaProjects/Piper> git rebase master rl-clean292
  First, rewinding head to replay your work on top of it...
  /sw/lib/git-core/git-am: line 692: Leblond: command not found
  Patch does not have a valid e-mail address.
  lanny((ae6c220...)|REBASE);<work/IdeaProjects/Piper> 

Versions 1.7.10.2 is (now?) exhibiting this behavior.  We've been rebasing fine for several month which is why I wonder if being on MacOSX is involved?  (I'm at 10.7.4)  Some digging shows the root cause to be in function get_author_ident_from_commit at line 210 of git-core/git-sh-setup, namely the sed with environment overrides LANG=C LC_ALL=C.  This causes git-am to incorrectly build the .git/rebase-apply/author-script.

  lanny((ae6c220...)|REBASE);<work/IdeaProjects/Piper> cat .git/rebase-apply/author-script
  GIT_AUTHOR_NAME='R'émi Leblond
  GIT_AUTHOR_EMAIL='remi@spotinfluence.com'
  GIT_AUTHOR_DATE='@1335301038 -0600'

From the command-line

  lanny;~> echo $LANG
  en_US.UTF-8
  lanny;~> echo $LC_ALL

  lanny;~> echo "Rémi Leblond" | LANG=C LC_ALL=C sed -ne 's/.*/GIT_AUTHOR_NAME='\''&'\''/p'
  GIT_AUTHOR_NAME='R'émi Leblond
  lanny;~> echo "Rémi Leblond" | sed -ne 's/.*/GIT_AUTHOR_NAME='\''&'\''/p'
  GIT_AUTHOR_NAME='Rémi Leblond'

I can work around it easily enough by editing git-sh-setup to remove the locale overrides but thought a bug report might be useful.

Enjoy,
  -ljr

---
Lanny Ripple
lanny@spotinfluence.com



[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 235 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-06-02 16:37 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-30 22:16 Bug: rebase when an author uses accents in name on MacOSx Lanny Ripple
2012-05-30 23:45 ` Junio C Hamano
2012-05-30 23:57   ` Jürgen Kreileder
2012-05-31  1:19   ` Jeff King
2012-05-31  6:33     ` Junio C Hamano
2012-05-31 13:36       ` Lanny Ripple
2012-05-31 14:28         ` Thomas Rast
2012-05-31 14:56           ` Lanny Ripple
2012-05-31 17:34         ` Junio C Hamano
2012-05-31 17:49           ` Lanny Ripple
2012-05-31 18:33             ` Junio C Hamano
2012-05-31 19:21               ` Lanny Ripple
2012-06-01  9:30                 ` Jeff King
2012-06-01 13:56                   ` Lanny Ripple
2012-06-02 16:09                     ` Jeff King
2012-06-02 16:37                       ` Lanny Ripple
2012-06-01 16:19                   ` Junio C Hamano
2012-06-01 17:05                     ` Lanny Ripple
2012-06-01 17:57                       ` Junio C Hamano
2012-06-02 16:23                     ` Jeff King
2012-05-31  9:33     ` Thomas Rast

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).