Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact
Show
Ignore:
Timestamp:
05/30/08 17:07:56 (6 months ago)
Author:
larsivi
Message:

There is no point in throwing if it is to be caught in the next step, so removing throw in this instance (win32), closes #1109, thanks cybershadow, reopen if needed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/text/locale/Core.d

    r3424 r3538  
    295295  public static Culture getCulture(int cultureID) { 
    296296    Culture culture = getCultureInternal(cultureID, null); 
     297 
     298version (Posix) { 
    297299    if (culture is null) 
    298  
    299 version (Posix) { 
    300     error ("Culture not found - if this was not tried set by the application, Tango\n" 
     300        error ("Culture not found - if this was not tried set by the application, Tango\n" 
    301301            ~ "will expect that a locale is set via environment variables LANG or LC_ALL."); 
    302302} 
    303 else { 
    304     error ("Culture not found - if this was not tried set by the application, Tango\n" 
    305             ~ "will expect that a locale is set for the system ."); 
    306 
     303 
    307304    return culture; 
    308305  }