aboutsummaryrefslogtreecommitdiffstats
path: root/enc/trans/utf_16_32.trans
diff options
context:
space:
mode:
Diffstat (limited to 'enc/trans/utf_16_32.trans')
-rw-r--r--enc/trans/utf_16_32.trans8
1 files changed, 8 insertions, 0 deletions
diff --git a/enc/trans/utf_16_32.trans b/enc/trans/utf_16_32.trans
index 2bbee65b7f..bb6db9d5e4 100644
--- a/enc/trans/utf_16_32.trans
+++ b/enc/trans/utf_16_32.trans
@@ -262,6 +262,7 @@ fun_so_to_utf_32le(rb_transcoding* t, const unsigned char* s, size_t l, unsigned
static const rb_transcoder
rb_from_UTF_16BE = {
"UTF-16BE", "UTF-8", from_UTF_16BE,
+ byte_array, word_array, sizeof(uintptr_t),
2, /* input_unit_length */
4, /* max_input */
4, /* max_output */
@@ -272,6 +273,7 @@ rb_from_UTF_16BE = {
static const rb_transcoder
rb_to_UTF_16BE = {
"UTF-8", "UTF-16BE", to_UTF_16BE,
+ byte_array, word_array, sizeof(uintptr_t),
1, /* input_unit_length */
4, /* max_input */
4, /* max_output */
@@ -282,6 +284,7 @@ rb_to_UTF_16BE = {
static const rb_transcoder
rb_from_UTF_16LE = {
"UTF-16LE", "UTF-8", from_UTF_16LE,
+ byte_array, word_array, sizeof(uintptr_t),
2, /* input_unit_length */
4, /* max_input */
4, /* max_output */
@@ -292,6 +295,7 @@ rb_from_UTF_16LE = {
static const rb_transcoder
rb_to_UTF_16LE = {
"UTF-8", "UTF-16LE", to_UTF_16BE,
+ byte_array, word_array, sizeof(uintptr_t),
1, /* input_unit_length */
4, /* max_input */
4, /* max_output */
@@ -302,6 +306,7 @@ rb_to_UTF_16LE = {
static const rb_transcoder
rb_from_UTF_32BE = {
"UTF-32BE", "UTF-8", from_UTF_32BE,
+ byte_array, word_array, sizeof(uintptr_t),
4, /* input_unit_length */
4, /* max_input */
4, /* max_output */
@@ -312,6 +317,7 @@ rb_from_UTF_32BE = {
static const rb_transcoder
rb_to_UTF_32BE = {
"UTF-8", "UTF-32BE", to_UTF_16BE,
+ byte_array, word_array, sizeof(uintptr_t),
1, /* input_unit_length */
4, /* max_input */
4, /* max_output */
@@ -322,6 +328,7 @@ rb_to_UTF_32BE = {
static const rb_transcoder
rb_from_UTF_32LE = {
"UTF-32LE", "UTF-8", from_UTF_32LE,
+ byte_array, word_array, sizeof(uintptr_t),
4, /* input_unit_length */
4, /* max_input */
4, /* max_output */
@@ -332,6 +339,7 @@ rb_from_UTF_32LE = {
static const rb_transcoder
rb_to_UTF_32LE = {
"UTF-8", "UTF-32LE", to_UTF_16BE,
+ byte_array, word_array, sizeof(uintptr_t),
1, /* input_unit_length */
4, /* max_input */
4, /* max_output */