Simplify error handling macros. Use direct locale access functions.