mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 2c7b6214e7
			
		
	
	
	2c7b6214e7
	
	
	
		
			
			- 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
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			676 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			676 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| -- source include/have_utf16.inc
 | |
| -- source include/not_embedded.inc
 | |
| 
 | |
| --echo #
 | |
| --echo # MDEV-17088 Provide tools to encode/decode mysql-encoded file system names
 | |
| --echo #
 | |
| 
 | |
| --character_set utf8
 | |
| SET NAMES utf8;
 | |
| 
 | |
| --echo # Bad delimiter
 | |
| --error 1
 | |
| --exec $MARIADB_CONV -f utf16 -t utf8 --delimiter="\r\n" $MYSQL_TEST_DIR/std_data/mariadb-conv/file01.utf16.txt 2>&1
 | |
| 
 | |
| --echo # Bad delimiter
 | |
| --error 1
 | |
| --exec $MARIADB_CONV -f utf8 -t utf16 --delimiter="\r\n" $MYSQL_TEST_DIR/std_data/mariadb-conv/file01.utf8.txt 2>&1
 | |
| 
 | |
| --echo # Start of file01.utf16.txt
 | |
| --exec $MARIADB_CONV -f utf16 -t utf8 $MYSQL_TEST_DIR/std_data/mariadb-conv/file01.utf16.txt 2>&1
 | |
| --echo # End of file01.utf16.txt
 |