• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/tcl-105/tcl84/tcl/generic/

Lines Matching refs:encoding

95 				Tcl_Encoding encoding));
208 * Depends on encoding and memory subsystems.
1199 * Set the channel to system default encoding.
1202 statePtr->encoding = NULL;
1205 statePtr->encoding = Tcl_GetEncoding(NULL, name);
1243 if ((statePtr->encoding != NULL) && (statePtr->flags & TCL_WRITABLE)) {
1872 * hold any bytes of a native-encoding character that got split by
1878 * hold any bytes of a native-encoding character (generated from a
2399 Tcl_FreeEncoding(statePtr->encoding);
2664 * When the channel has an escape sequence driven encoding such as
2667 if ((statePtr->encoding != NULL) && (statePtr->curOutPtr != NULL)
2835 * No encoding conversions are applied to the bytes being read.
2886 * No encoding conversions are applied to the bytes being read.
2940 * using the channel's current encoding, may queue the buffer for
2982 * using the channel's current encoding, may queue the buffer for
3017 if (statePtr->encoding == NULL) {
3042 * encoding of the channel is NULL, takes the byte-array representation
3045 * and converts them for output using the channel's current encoding.
3080 if (statePtr->encoding == NULL) {
3183 * Convert UTF-8 bytes to the channel's external encoding and
3212 Tcl_Encoding encoding;
3219 encoding = statePtr->encoding;
3271 * to external encoding, storing them in output buffer.
3297 result = Tcl_UtfToExternal(NULL, encoding, stage, stageLen,
3305 * The encoding chosen in the script exposing the bug writes out
3337 * When translating from UTF-8 to external encoding, we
3615 * are converted to UTF-8 using the encoding specified by the
3644 Tcl_Encoding encoding;
3660 encoding = statePtr->encoding;
3676 * If there is no encoding, use "iso8859-1" -- Tcl_GetsObj() doesn't
3681 if (encoding == NULL) {
3682 encoding = Tcl_GetEncoding(NULL, "iso8859-1");
3692 gs.encoding = encoding;
3796 Tcl_ExternalToUtf(NULL, gs.encoding,
3862 CommonGetsCleanup(chanPtr, encoding);
3882 Tcl_ExternalToUtf(NULL, gs.encoding, bufPtr->buf + bufPtr->nextRemoved,
3894 CommonGetsCleanup(chanPtr, encoding);
3912 CommonGetsCleanup(chanPtr, encoding);
4056 result = Tcl_ExternalToUtf(NULL, gsPtr->encoding, raw, rawLen,
4222 CommonGetsCleanup(chanPtr, encoding)
4224 Tcl_Encoding encoding;
4246 * encoding which could change the interpretation of whether those
4265 if (statePtr->encoding == NULL) {
4266 Tcl_FreeEncoding(encoding);
4281 * No encoding conversions are applied to the bytes being read.
4326 * No encoding conversions are applied to the bytes being read.
4475 * bytes are converted to UTF-8 using the channel's current encoding
4530 * bytes are converted to UTF-8 using the channel's current encoding
4559 Tcl_Encoding encoding;
4567 encoding = statePtr->encoding;
4571 if (encoding == NULL) {
4584 if (encoding == NULL) {
4594 if (encoding == NULL) {
4641 if (encoding == NULL) {
4922 Tcl_ExternalToUtf(NULL, statePtr->encoding, src, srcLen,
4947 Tcl_ExternalToUtf(NULL, statePtr->encoding, src, srcLen,
5023 Tcl_ExternalToUtf(NULL, statePtr->encoding, src, srcLen,
5046 Tcl_ExternalToUtf(NULL, statePtr->encoding, src, srcLen,
6251 if ((statePtr->encoding != NULL) && (statePtr->flags & TCL_WRITABLE)) {
6326 "blocking buffering buffersize encoding eofchar translation";
6470 (strncmp(optionName, "-encoding", len) == 0))) {
6472 Tcl_DStringAppendElement(dsPtr, "-encoding");
6474 if (statePtr->encoding == NULL) {
6478 Tcl_GetEncodingName(statePtr->encoding));
6696 (strncmp(optionName, "-encoding", len) == 0)) {
6697 Tcl_Encoding encoding;
6700 encoding = NULL;
6702 encoding = Tcl_GetEncoding(interp, newValue);
6703 if (encoding == NULL) {
6708 * When the channel has an escape sequence driven encoding such as
6711 if ((statePtr->encoding != NULL) && (statePtr->curOutPtr != NULL)
6716 Tcl_FreeEncoding(statePtr->encoding);
6717 statePtr->encoding = encoding;
6801 Tcl_FreeEncoding(statePtr->encoding);
6802 statePtr->encoding = NULL;
6854 Tcl_FreeEncoding(statePtr->encoding);
6855 statePtr->encoding = NULL;
6903 * If encoding or bufsize changes, need to update output staging buffer.
6910 if ((statePtr->encoding != NULL) && (statePtr->flags & TCL_WRITABLE)) {
7918 inBinary = (inStatePtr->encoding == NULL);
7919 outBinary = (outStatePtr->encoding == NULL);
7920 sameEncoding = (inStatePtr->encoding == outStatePtr->encoding);
8029 * bytes or characters, and both EOL translation and encoding
8167 * No encoding conversions are applied to the bytes being read.