summaryrefslogtreecommitdiffstats
path: root/src/test/test-utf8.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-141-1/+1
| | | | | | Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+0
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* basic/utf8: add ascii_is_valid_n()Zbigniew Jędrzejewski-Szmek2018-06-091-1/+12
|
* test-utf8: add a smoke test for utf8_console_width()Zbigniew Jędrzejewski-Szmek2018-04-181-0/+10
|
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* tests: add a simple test for utf8_n_codepoints()Zbigniew Jędrzejewski-Szmek2018-02-191-0/+10
|
* Add SPDX license identifiers to source files under the LGPLZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
| | | | | This follows what the kernel is doing, c.f. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fd54ace4721fc5ce2bb5aef6318fcf17f421460.
* tree-wide: remove Emacs lines from all filesDaniel Mack2016-02-101-2/+0
| | | | | This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
* tree-wide: sort includesThomas Hindoe Paaboel Andersen2015-11-161-1/+1
| | | | Sort the includes accoding to the new coding style.
* util-lib: split out allocation calls into alloc-util.[ch]Lennart Poettering2015-10-271-0/+1
|
* util-lib: split our string related calls from util.[ch] into its own file ↵Lennart Poettering2015-10-241-0/+1
| | | | | | | | | | | | | | string-util.[ch] There are more than enough calls doing string manipulations to deserve its own files, hence do something about it. This patch also sorts the #include blocks of all files that needed to be updated, according to the sorting suggestions from CODING_STYLE. Since pretty much every file needs our string manipulation functions this effectively means that most files have sorted #include blocks now. Also touches a few unrelated include files.
* test: utf8 - fix utf16 tests on BE machinesTom Gundersen2015-02-181-1/+1
|
* shared: utf8 - support decoding the full utf16Tom Gundersen2014-12-221-0/+13
| | | | We originally only supported the BMP (i.e., we treated UTF-16 as UCS-2).
* utf8: when escaping unprintable unichars, escape the whole unichar, not just ↵Lennart Poettering2014-12-041-2/+5
| | | | the first byte of it
* utf8: intruduce utf8_escape_non_printableWaLyong Cho2014-12-041-0/+25
|
* core: do not print invalid utf-8 in error messagesZbigniew Jędrzejewski-Szmek2014-02-081-0/+17
|
* utf8: ascii_filter() is unused, let's remove itLennart Poettering2013-11-071-17/+0
|
* utf8: fix utf8_is_printableZbigniew Jędrzejewski-Szmek2013-10-061-0/+1
|
* test-utf8: add more tests for public functionsDave Reisner2013-09-191-0/+34
|
* device-nodes: move device node specific code to own fileDave Reisner2013-09-191-27/+1
| | | | | | | | In the process, rename udev_encode_string which is poorly named for what it does. It deals specifically with encoding names that udev creates and has its own rules: utf8 is valid but some ascii is not (e.g. path separators), and everything else is simply escaped. Rename it to encode_devnode_name.
* shared/utf8: merge implementations, remove cruftDave Reisner2013-09-191-0/+9
| | | | | This unifies the utf8 handling code which was previously duplicated in udev and systemd.
* move utf8 functions from libudev-private.h to utf8.hDave Reisner2013-09-171-0/+59
There's now some more obvious overlap amongst the two utf8 validation functions, but no more than there already was previously. This also adds some menial tests for anyone who wants to do more merging of these two in the future.