x/review: go-codereview tool does not work with non-English locales #33895
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
go env
OutputWhat did you do?
https://go.googlesource.com/go
git codereview change
What did you expect to see?
It work like it did when my machine was in English.
What did you see instead?
It failed.
I'm assuming this is because the
OriginBranch
function checks for the English output, "upstream configured," not the French "aucune branche amont configurée." (https://github.com/golang/review/blob/3faf27076323fb8383c9b24e875f37a630b2f213/git-codereview/branch.go#L88)It works if I run
LANG=en_US git change
. I'm assuming i18n is too big of a task, so it'd be nice if the tool could at least notice when it won't be able to parse strings and provide a decent error message.The text was updated successfully, but these errors were encountered: