mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Use wcscmp instead of
darcs-hash:20071013212606-35ec8-ba25df01017fb1c272ea9dae059fb4245e4c02da.gz
This commit is contained in:
@@ -101,7 +101,7 @@ These functions are used for storing and retrieving tab-completion data, as well
|
||||
response)
|
||||
*/
|
||||
#ifdef USE_GETTEXT
|
||||
#define C_(wstr) ((wstr==L"")?L"":wgettext(wstr))
|
||||
#define C_(wstr) ((wcscmp(wstr, L"")==0)?L"":wgettext(wstr))
|
||||
#else
|
||||
#define C_(string) (string)
|
||||
#endif
|
||||
@@ -294,7 +294,7 @@ static int condition_test( const wchar_t *condition )
|
||||
*/
|
||||
}
|
||||
|
||||
if( test_res == CC_TRUE )
|
||||
if( wcscmp( test_res, CC_TRUE ) == 0 )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -2087,7 +2087,7 @@ static void append_switch( string_buffer_t *out,
|
||||
{
|
||||
wchar_t *esc;
|
||||
|
||||
if( !argument || argument==L"" )
|
||||
if( !argument || wcscmp( argument, L"") == 0 )
|
||||
return;
|
||||
|
||||
esc = escape( argument, 1 );
|
||||
|
||||
Reference in New Issue
Block a user