>>>>> Benjamin Kosnik writes: Ben> try changing that line to Ben> std::setlocale(LC_ALL, ph.c_str()); Ben> and seeing if that works Yes, removing the assignment to string lc_all_ph prevents the crash. Thanks, David