Change some asserts flagging runtime errors to fatal_asserts (Anders Kaseorg)

This commit is contained in:
Keith Winstein
2012-04-16 06:27:14 -04:00
parent a8c3df9c80
commit bcb96d9337
4 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -42,6 +42,7 @@
#include "parser.h"
#include "swrite.h"
#include "locale_utils.h"
#include "fatal_assert.h"
const size_t buf_size = 1024;
@@ -57,7 +58,7 @@ int main( int argc __attribute__((unused)),
struct termios saved_termios, raw_termios, child_termios;
set_native_locale();
assert( is_utf8_locale() );
fatal_assert( is_utf8_locale() );
if ( tcgetattr( STDIN_FILENO, &saved_termios ) < 0 ) {
perror( "tcgetattr" );