`git add` completion fails when using filenames with Scandinavian characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
== Background ==
Reporting from Xenial, but this is currently reproducible in Artsy too.
$ locale
LANG=fi_FI.UTF-8
LANGUAGE=fi:en
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
== Test case ==
$ git init test
$ cd test
$ echo "foo" > bär
$ git add [hit tab key]
$ git add \"b\\303\\244r\" [hit enter]
== What happens ==
fatal: pathspec '"b\303\244r"' did not match any files
== What I expect to happen ==
For the filename to be correctly completed, like with ls:
$ mkdir test2
$ cd test2
$ echo "foo" > bär
$ ls [hit tab key]
$ ls bär [hit enter]
bär
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: bash-completion 1:2.1-4.2ubuntu1.1 [modified: usr/share/
ProcVersionSign
Uname: Linux 4.8.0-54-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Jun 5 18:37:14 2017
InstallationDate: Installed on 2016-10-13 (235 days ago)
InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
PackageArchitec
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install)