• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/tcl-105/tcl_ext/trf/trf/patches/v8.1/

Lines Matching refs:encoding

139     Tcl_Encoding encoding;	/* Encoding to apply when reading or writing
141 * encoding is applied to data. */
143 /* Current encoding state, used when converting
151 /* Current encoding state, used when converting
350 Tcl_Encoding encoding; /* The encoding to use to convert raw bytes
354 Tcl_EncodingState state; /* The encoding state just before the last
440 Tcl_Encoding encoding));
534 * Depends on encoding and memory subsystems.
1305 * Set the channel to system default encoding.
1308 chanPtr->encoding = NULL;
1311 chanPtr->encoding = Tcl_GetEncoding(NULL, name);
1364 if ((chanPtr->encoding != NULL) && (chanPtr->flags & TCL_WRITABLE)) {
1514 * Take over the encoding from the superceded channel, so that it will be
1529 chanPtr->encoding = pt->encoding;
1537 if ((chanPtr->encoding != NULL) && (chanPtr->flags & TCL_WRITABLE)) {
1791 * hold any bytes of a native-encoding character that got split by
1797 * hold any bytes of a native-encoding character (generated from a
2301 Tcl_FreeEncoding(chanPtr->encoding);
2581 * using the channel's current encoding, may queue the buffer for
2613 if (chanPtr->encoding == NULL) {
2638 * encoding of the channel is NULL, takes the byte-array representation
2641 * and converts them for output using the channel's current encoding.
2670 if (chanPtr->encoding == NULL) {
2772 * Convert UTF-8 bytes to the channel's external encoding and
2799 Tcl_Encoding encoding;
2806 encoding = chanPtr->encoding;
2855 * to external encoding, storing them in output buffer.
2881 Tcl_UtfToExternal(NULL, encoding, stage, stageLen, flags,
2900 * When translating from UTF-8 to external encoding, we
3156 * are converted to UTF-8 using the encoding specified by the
3184 Tcl_Encoding encoding;
3196 encoding = chanPtr->encoding;
3212 * If there is no encoding, use "iso8859-1" -- Tcl_GetsObj() doesn't
3217 if (encoding == NULL) {
3218 encoding = Tcl_GetEncoding(NULL, "iso8859-1");
3228 gs.encoding = encoding;
3332 Tcl_ExternalToUtf(NULL, gs.encoding,
3398 CommonGetsCleanup(chanPtr, encoding);
3418 Tcl_ExternalToUtf(NULL, gs.encoding, bufPtr->buf + bufPtr->nextRemoved,
3429 CommonGetsCleanup(chanPtr, encoding);
3447 CommonGetsCleanup(chanPtr, encoding);
3590 result = Tcl_ExternalToUtf(NULL, gsPtr->encoding, raw, rawLen,
3748 CommonGetsCleanup(chanPtr, encoding)
3750 Tcl_Encoding encoding;
3771 * encoding which could change the interpretation of whether those
3790 if (chanPtr->encoding == NULL) {
3791 Tcl_FreeEncoding(encoding);
3806 * No encoding conversions are applied to the bytes being read.
3844 * bytes are converted to UTF-8 using the channel's current encoding
3873 Tcl_Encoding encoding;
3882 encoding = chanPtr->encoding;
3886 if (encoding == NULL) {
3893 if (encoding == NULL) {
3903 if (encoding == NULL) {
3950 if (encoding == NULL) {
4182 Tcl_ExternalToUtf(NULL, chanPtr->encoding, src, srcLen,
4203 Tcl_ExternalToUtf(NULL, chanPtr->encoding, src, srcLen,
4245 Tcl_ExternalToUtf(NULL, chanPtr->encoding, src, srcLen,
4268 Tcl_ExternalToUtf(NULL, chanPtr->encoding, src, srcLen,
5229 if ((chanPtr->encoding != NULL) && (chanPtr->flags & TCL_WRITABLE)) {
5441 (strncmp(optionName, "-encoding", len) == 0))) {
5443 Tcl_DStringAppendElement(dsPtr, "-encoding");
5445 if (chanPtr->encoding == NULL) {
5449 Tcl_GetEncodingName(chanPtr->encoding));
5652 (strncmp(optionName, "-encoding", len) == 0)) {
5653 Tcl_Encoding encoding;
5656 encoding = NULL;
5658 encoding = Tcl_GetEncoding(interp, newValue);
5659 if (encoding == NULL) {
5663 Tcl_FreeEncoding(chanPtr->encoding);
5664 chanPtr->encoding = encoding;
5738 Tcl_FreeEncoding(chanPtr->encoding);
5739 chanPtr->encoding = NULL;
5791 Tcl_FreeEncoding(chanPtr->encoding);
5792 chanPtr->encoding = NULL;
5840 * If encoding or bufsize changes, need to update output staging buffer.
5847 if ((chanPtr->encoding != NULL) && (chanPtr->flags & TCL_WRITABLE)) {