Bug 328295 - Add 7bit US-ASCII to the list of possible encodings
Summary: Add 7bit US-ASCII to the list of possible encodings
Status: RESOLVED FIXED
Alias: None
Product: okteta
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-01 17:43 UTC by Kevin Funk
Modified: 2014-01-26 12:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.13.0 (SC 4.13.0)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Funk 2013-12-01 17:43:21 UTC
Others want multi-byte support -- I'm going one step backwards.

In order to debug an issue where I needed to know if a certain file contained non-7bit ASCII codes, I fired up okteta and checked for invalid chars.

It would have been nice to have '7bit US-ASCII' in the list of encodings in the combo box at the bottom, which then marks all codes > 0x7f as red.

Reproducible: Always
Comment 1 Friedrich W. H. Kossebau 2014-01-26 03:51:52 UTC
Git commit 8977f3fc7d61f9cc3906c79afe5bbaaa0b266280 by Friedrich W. H. Kossebau.
Committed on 26/01/2014 at 03:49.
Pushed by kossebau into branch 'master'.

Add support for US-ASCII char encoding

FIXED-IN: 0.13.0 (SC 4.13.0)

M  +1    -0    core/CMakeLists.txt
M  +4    -0    core/codecs/charcodec.cpp
A  +71   -0    core/codecs/usasciicharcodec.cpp     [License: LGPL]
A  +57   -0    core/codecs/usasciicharcodec.h     [License: LGPL]

http://commits.kde.org/okteta/8977f3fc7d61f9cc3906c79afe5bbaaa0b266280
Comment 2 Kevin Funk 2014-01-26 12:42:26 UTC
Thanks a lot, Friedrich!