48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# This file and its contents are supplied under the terms of the
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# Common Development and Distribution License ("CDDL"), version 1.0.
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# You may only use this file in accordance with the terms of version
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# 1.0 of the CDDL.
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# A full copy of the text of the CDDL should have accompanied this
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# source. A copy of the CDDL is also available via the Internet at
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# Copyright 2012 Nexenta Systems, Inc. All rights reserved.
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross#ICONV=${ROOT}/usr/bin/iconv
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# test name, file a, file b
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# fromcs, tocs, in, out
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross for i in 8 9 a b c d e f
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross for i in 8 9 a b c d e f
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# write 1023 bytes of space
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross while [[ $n -gt 0 ]]; do
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# two-byte utf-8 crossing 1024 byte boundary
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# one-byte 8859-1 at 1024 byte boundary
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# Test some simple, built-in conversions
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# Test user-provided charmap
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Rosstest_conv ./one.cm ./two.cm '\0200\0201\0202\c' ' \0200 \0201 \0202\c'
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# test crossing 1024 byte buffer boundary