Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2493

Show
Ignore:
Timestamp:
08/17/07 15:11:34 (1 year ago)
Author:
larsivi
Message:

Throwing a more telling exception if LANG or LC_ALL is not set. refs #425

Files:

Legend:

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

    r2151 r2493  
    3535    env = getenv("LANG"); 
    3636    if (!env || *env == '\0') 
    37       return 0
     37      throw new Exception("Neither LANG nor LC_ALL were found to be set. Please set for locale formatting to function.")
    3838  } 
    3939