mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
A cleanup for MDEV-17088 Provide tools to encode/decode mysql-encoded file system names
- Load and convert the entire input file at once, rather than reading string-by-string using fgets(). This change makes it possible to convert from UCS2, UTF16, UTF32 data. - Adding the --delimiter command, to treat the specified characters as delimiters rather than data to convert. Useful in combination with `-f filename` or `-t filename`. The delimiter characters are not converted, they are copied from the input to the output as is. - Adding diagnostics with line number and position if: * an illegal input byte sequence was found * a character cannot be converted to the target character set
This commit is contained in:
BIN
mysql-test/std_data/mariadb-conv/file01.utf16.txt
Normal file
BIN
mysql-test/std_data/mariadb-conv/file01.utf16.txt
Normal file
Binary file not shown.
3
mysql-test/std_data/mariadb-conv/file01.utf8.txt
Normal file
3
mysql-test/std_data/mariadb-conv/file01.utf8.txt
Normal file
@ -0,0 +1,3 @@
|
||||
aaa
|
||||
xxxяяяxxx
|
||||
bbb
|
3
mysql-test/std_data/mariadb-conv/file02.latin1.txt
Normal file
3
mysql-test/std_data/mariadb-conv/file02.latin1.txt
Normal file
@ -0,0 +1,3 @@
|
||||
aaa
|
||||
xxx<EFBFBD><EFBFBD><EFBFBD>xxx
|
||||
bbb
|
Reference in New Issue
Block a user