Diff
Not logged in

Differences From Artifact [253b8acebe]:

To Artifact [da4ca08c49]:


1665
1666
1667
1668
1669
1670
1671

1672

1673
1674
1675
1676
1677
1678
1679
1665
1666
1667
1668
1669
1670
1671
1672

1673
1674
1675
1676
1677
1678
1679
1680







+
-
+







     * Option -mode baud,parity,databits,stopbits
     */

    if ((len > 2) && (strncmp(optionName, "-mode", len) == 0)) {
	if (!GetCommState(infoPtr->handle, &dcb)) {
	    goto getStateFailed;
	}
	Tcl_DStringInit(&ds);
	native = Tcl_WinUtfToTChar(value, -1, &ds);
	native = Tcl_UtfToWCharDString(value, -1, &ds);
	result = BuildCommDCB(native, &dcb);
	Tcl_DStringFree(&ds);

	if (result == FALSE) {
	    if (interp != NULL) {
		Tcl_SetObjResult(interp, Tcl_ObjPrintf(
			"bad value \"%s\" for -mode: should be baud,parity,data,stop",