Skip to content

Conversation

@kwantam
Copy link
Contributor

@kwantam kwantam commented Apr 28, 2015

This PR does the following:

  1. Removes unnecessary use of box_syntax feature gate in fmt, base64, and cat
  2. Fixes unlink
  3. Fixes and substantially reworks unexpand and expand
    • In both cases, the goals were
      1. Fix slightly broken behavior in weird cases,
      2. make the utilities able to handle both UTF-8 and non-UTF-8 inputs, and
      3. add a -U switch that explicitly prevents the command from interpreting input as UTF-8.
  4. Fixes tr, and substantially reduces the number of allocations it does at startup.

@kwantam
Copy link
Contributor Author

kwantam commented Apr 29, 2015

Oops, didn't fix the unexpand test. Please don't merge until I do, should be quick.

kwantam added 4 commits April 29, 2015 01:09
This is a reworked version of unexpand. I did this for two main
reasons:

1. The previous version of unexpand had issues correctly computing
   tabstops when the `-a` flag was supplied.

2. The previous version assumed the input was UTF-8. This version works
   with non-UTF-8 inputs.

3. This version has a new flag, -U, which forces unexpand to
   treat input as 8-bit ASCII rather than interpreting it
   as UTF-8. This might be handy in some cases.
This is a reworked version of expand. I did this for two main
reasons:

1. The previous version assumed the input was UTF-8. This
   version is compatible with both UTF-8 and non-UTF-8 inputs.

2. This version has a new flag, -U, which forces expand to
   treat input as 8-bit ASCII rather than interpreting it
   as UTF-8. This might be handy in some cases.
@kwantam
Copy link
Contributor Author

kwantam commented Apr 29, 2015

Good to go now.

In addition, this commit substantially reduces the number
of allocations that tr does when building the substitution
tables.
Cynede pushed a commit that referenced this pull request Apr 29, 2015
more feature cleanup ; fix more utils
@Cynede Cynede merged commit 1a6f810 into uutils:master Apr 29, 2015
jbcrail pushed a commit to jbcrail/coreutils that referenced this pull request Apr 29, 2015
more feature cleanup ; fix more utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants