Ignore:
Timestamp:
04/17/07 14:06:12 (18 years ago)
Author:
r2d
Message:
  • added unicode (UTF-8) autodetection for unix
  • changed --longhelp about --unicode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/mpcenc/mpcenc.c

    r241 r272  
    232232             "                   ean/upc, year, releasedate, genre, media, index, isrc,\n"
    233233             "                   abstract, bibliography, introplay, media, language, ...\n"
    234              "  --unicode        unicode input from console\n"
     234                         "  --unicode        Toggle unicode input from console on/off if autodetection\n"
     235                         "                   doesn't work. This switch MUST be before any tag switch.\n"
    235236             "\n" );
    236237
     
    10411042        }
    10421043        else if ( 0 == strcmp ( arg, "unicode") ) {                                  // no tag conversion
    1043             NoUnicode = 0;
     1044            NoUnicode = 1 - NoUnicode;
    10441045                }
    10451046                else if ( 0 == strcmp ( arg, "no_ei") ) {                                  // no encoder info block
     
    17981799#endif
    17991800
     1801#ifdef LC_CTYPE
     1802        setlocale(LC_CTYPE, "");
     1803        NoUnicode = (strcmp(nl_langinfo(CODESET), "UTF-8") != 0);
     1804#endif
     1805
    18001806    if ( WIN32_MESSAGES ) {
    18011807        FrontendPresent = SearchForFrontend (); // search for presence of Windows Frontend
Note: See TracChangeset for help on using the changeset viewer.