Special case for CYGWIN to properly display russian letters in rxvt.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 16 Mar 2010 14:21:14 +0200
changeset 32 031655c93305
parent 31 4f492a0583cc
child 33 961fa02a30ff
Special case for CYGWIN to properly display russian letters in rxvt.
.bashrc
--- a/.bashrc	Mon Mar 15 00:20:25 2010 +0200
+++ b/.bashrc	Tue Mar 16 14:21:14 2010 +0200
@@ -80,3 +80,10 @@
 
 # canonicalize path (including resolving symlinks)
 # alias realpath='readlink -f'
+
+# Special case for CYGWIN to properly display russian letters in rxvt.
+if [ -n "$COMSPEC" ]; then
+  if [ x$OSTYPE = xcygwin ]; then
+    export LANG=ru_RU.CP1251
+  fi
+fi