Skip to content

Instantly share code, notes, and snippets.

@pooya
Created February 10, 2014 22:59
Show Gist options
  • Save pooya/8925959 to your computer and use it in GitHub Desktop.
Save pooya/8925959 to your computer and use it in GitHub Desktop.
freebsd_binary_sort.patch
diff --git a/sort.c b/sort.c
index d811a86..664b214 100644
--- a/sort.c
+++ b/sort.c
@@ -1060,10 +1060,6 @@ main(int argc, char **argv)
}
sort_opts_vals.tflag = true;
sort_opts_vals.field_sep = btowc(optarg[0]);
- if (sort_opts_vals.field_sep == WEOF) {
- errno = EINVAL;
- err(2, NULL);
- }
if (!gnusort_numeric_compatibility) {
if (symbol_decimal_point == sort_opts_vals.field_sep)
symbol_decimal_point = WEOF;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment