108a109 > {"user-separator", 1, NULL, 'u'}, 128d128 < 133a134 > int user_space = 0; /* user specified separator */ 182a184 > 259a262,278 > /*-----------------------------------------. > | Check if it is a defined separator. | > `-----------------------------------------*/ > > static int is_space(int ch) { > // if not defined check as before. > if (!user_space) return isspace(ch); > > if (ch == user_space || isspace(ch)) { > if ((ch == (int)' ') && (user_space != (int)' ')) return 0; > else return 1; > } > else { > return 0; > } > } > 373,374c392 < < while (isspace (side->character)) --- > while (is_space (side->character)) 387,388c405 < < while (side->character != EOF && !isspace (side->character)) --- > while (side->character != EOF && !is_space (side->character)) 403c420 < while (isspace (side->character)) --- > while (is_space (side->character)) 489c506 < while (side->character != EOF && !isspace (side->character)) --- > while (side->character != EOF && !is_space (side->character)) 1267a1285 > fputs (_(" -u, --user-separator=CHAR char (len 1) of user defined word separation\n"), stdout); 1322c1340 < "123CKadhilnpstvw:x:y:z:", longopts, --- > "123CKadhilnpstvw:x:y:z:u:", longopts, 1417a1436,1442 > > case 'u': > if (strlen(optarg) != 1) { > error (EXIT_ERROR, 0, _("-u (or --user-separator) parameter must be lenght 1")); > } > user_space = (int)optarg[0]; > break;