aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-01-09 09:00:49 +1000
committerGravatar axel <axel@liljencrantz.se>2006-01-09 09:00:49 +1000
commit906495d713fa6e773ccd093143c34336361f28c8 (patch)
tree0af3bca4ae92a1d12ea8ebee539d9668175a38ee /common.h
parent690648e1b0a04db179d113e2900dde52d0e7f67f (diff)
Improve locale implementation (should now behave identically to bash) and document locale variables behaviour
darcs-hash:20060108230049-ac50b-403f1d00c8483fc4fecc275b62e40b1c3d51bfc1.gz
Diffstat (limited to 'common.h')
-rw-r--r--common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/common.h b/common.h
index 77de61ca..33eb8341 100644
--- a/common.h
+++ b/common.h
@@ -256,9 +256,12 @@ wchar_t *quote_end( const wchar_t *in );
void error_reset();
/**
- Set the locale, also change the ellipsis character
+ This function behaves exactly like a wide character equivalent of
+ the C function setlocale, except that it will also try to detect if
+ the user is using a Unicode character set, and if so, use the
+ unicode ellipsis character as ellipsis, instead of '$'.
*/
-void fish_setlocale( int category, const wchar_t *locale );
+const wchar_t *wsetlocale( int category, const wchar_t *locale );
/**
Checks if \c needle is included in the list of strings specified