git-gui cannot handle Non-ASCII character in gui.recentrepo

Bug #1330312 reported by LittleBigBrain
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
git (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

git gui works fine when there is no non-ASCII character in recentrepo entries.
Git gui can open the path with non-ASCII characters without any problem.
However if the gui.recentrepo contain non-ASCII characters, it will throw out an error.

The user.name can contain non-ASCII UTF8 characters .This works fine:

    git config --list
    user.name=NewUSer∞ π ∅
    <email address hidden>
    gui.recentrepo=/home/user/Documents/test.git

git gui can start without error.

However, if we put the non-ASCII characters into the gui.recentrepo:
    git config --global --add gui.recentrepo /home/user/Documents/∞_π_∅

    git config --list
    user.name=NewUSer∞ π ∅
    <email address hidden>
    gui.recentrepo=/home/user/Documents/test.git
    gui.recentrepo=/home/user/Documents/∞_π_∅

git gui will fail:

    > git gui
    Error in startup script: child process exited abnormally
        while executing
    "exec /usr/lib/git-core/git-config --global --unset gui.recentrepo {^/home/user/Documents/â_Ï_â$}"
        ("eval" body line 1)
        invoked from within
    "eval exec $opt $cmdp $args"
        (procedure "git" line 23)
        invoked from within
    "git config --global --unset gui.recentrepo "^$p\$""
        (procedure "_unset_recentrepo" line 3)
        invoked from within
    "_unset_recentrepo $p"
        (procedure "_get_recentrepos" line 7)
        invoked from within
    "_get_recentrepos"
        (procedure "choose_repository::pick" line 86)
        invoked from within
    "choose_repository::pick"
        invoked from within
    "if {[catch {
                    set _gitdir $env(GIT_DIR)
                    set _prefix {}
                    }]
            && [catch {
                    # beware that from the .git dir this sets _gitdir to .
                    # and _prefix t..."
        (file "/usr/lib/git-core/git-gui" line 1250)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in git (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.