summaryrefslogtreecommitdiff
path: root/src/test/test-utf8.c
Commit message (Collapse)AuthorAge
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-08-24
| | | | | | 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-08-24
| | | | | | | | | | | | | | | | 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-08-24
|
* test-utf8: add a smoke test for utf8_console_width()Zbigniew Jędrzejewski-Szmek2018-08-24
|
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-08-24
| | | | | | | | | | 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-05-30
|
* Prep v236 : Add missing SPDX-License-Identifier (8/9) src/testSven Eden2018-03-26
|
* Prep v233.3: Add all possible coverage tests for elogindSven Eden2017-07-20
|
* Remove src/testAndy Wingo2015-04-19
|
* test: utf8 - fix utf16 tests on BE machinesTom Gundersen2015-02-18
|
* shared: utf8 - support decoding the full utf16Tom Gundersen2014-12-22
| | | | 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-04
| | | | the first byte of it
* utf8: intruduce utf8_escape_non_printableWaLyong Cho2014-12-04
|
* core: do not print invalid utf-8 in error messagesZbigniew Jędrzejewski-Szmek2014-02-08
|
* utf8: ascii_filter() is unused, let's remove itLennart Poettering2013-11-07
|
* utf8: fix utf8_is_printableZbigniew Jędrzejewski-Szmek2013-10-05
|
* test-utf8: add more tests for public functionsDave Reisner2013-09-19
|
* device-nodes: move device node specific code to own fileDave Reisner2013-09-19
| | | | | | | | 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-19
| | | | | 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-17
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.