Changeset 1719464 for set.c


Ignore:
Timestamp:
2006-06-28T14:47:05Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5c9512f
Parents:
b3c467b
Message:

Added random_bytes() function for better/more reliable randomization and
moved set_eval_ops() to a slightly more suitable place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • set.c

    rb3c467b r1719464  
    224224}
    225225
     226char *set_eval_charset( irc_t *irc, set_t *set, char *value )
     227{
     228        GIConv cd;
     229
     230        if ( g_strncasecmp( value, "none", 4 ) == 0 )
     231                return( value );
     232
     233        cd = g_iconv_open( "UTF-8", value );
     234        if( cd == (GIConv) -1 )
     235                return( NULL );
     236
     237        g_iconv_close( cd );
     238        return( value );
     239}
Note: See TracChangeset for help on using the changeset viewer.