diff --git a/index.html b/index.html
index 9430fa3..c465bd1 100644
--- a/index.html
+++ b/index.html
@@ -340,7 +340,7 @@
Code
# /color-list
# :hg
- if [ -z "`echo $(hg prompt \"abort\" 2>&1) | grep abort`" ]; then
+ if [ -z "`echo $(LC_ALL=C hg prompt \"abort\" 2>&1) | grep abort`" ]; then
echo "hg-prompt not installed. Suggest http://sjl.bitbucket.org/hg-prompt/installation/"
fi
@@ -513,7 +513,7 @@ Code
# :hg
# If we are in mercurial ...
if [ -n \"\$_hg_dir\" ]; then
- hgBranch=\`cat \"\$_hg_dir/.hg/branch\"\`
+ hgBranch=\`[ -e \"\$_hg_dir/.hg/branch\" ] && cat \"\$_hg_dir/.hg/branch\" || echo \"default\"\`
hgPrompt=\"s\"
# :hg-modified