Commits

Evan Gates  committed 03e4ff3

don't print annoying can't find width messages

  • Participants
  • Parent commits af695f0
  • Branches utf8

Comments (0)

Files changed (1)

 int mfd;
 pid_t child;
 
+int bad_char = 0;
+
 void usage(void)
 {
 	printf("Usage: srw [-p prompt] cmd [args]...\n");
 		;
 	if (mbtowc(&wc, buf + *ind, nb) < 0)
 		warnx("failed multibyte to wide char conversion");
-	if ((nb = wcwidth(wc)) < 0)
-		warnx("failed to find width of wide char");
+	if ((nb = wcwidth(wc)) < 0) {
+		//warnx("failed to find width of wide char");
+	}
 
 	return nb;
 }