charset for gettext enabled php. For example ru_RU locale in ISO8859-5
and SquirrelMail ru_RU translation done in koi8-r or cp1251.
Works only with php 4.2+, but squirrelmail can function without it.
Thanks to Viktor S. Grishchenko and Grisha Mokhin
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4860
7612ce4b-ef26-0410-bec9-
ea0150e637f0
isset($languages[$sm_notAlias]['CHARSET']) ) {
bindtextdomain( 'squirrelmail', SM_PATH . 'locale/' );
textdomain( 'squirrelmail' );
+ if (function_exists('bind_textdomain_codeset')) {
+ bind_textdomain_codeset ("squirrelmail", $languages[$sm_notAlias]['CHARSET'] );
+ }
if ( !ini_get('safe_mode') &&
getenv( 'LC_ALL' ) != $sm_notAlias ) {
putenv( "LC_ALL=$sm_notAlias" );