msysgit/msysgit — pull request #130 by akruis (2013-09-02 11:42:39+00:00)
Title: Fix issue #128: Git Bash: avoid beeps, if $PWD contains non ASCII chars

This is the pull request for issue #128.

This patch changes the PS1 prompt. The PS1 prompt emits a control sequence that sets the window title to the current directory. If the path to the current directory contains non ASCII characters, the console window beeps.

This patch replaces non ASCII characters by a '?' in the window title. The patch uses the ${///} variable expansion syntax and does not execute an external process. Therefore it should not degrade the performance.