On Wed, Jun 25, 2008 at 10:51 AM, Alex Villacís Lasso <[EMAIL PROTECTED]> wrote: > Default richedit font (System) in Windows causes native richedit to report > CFM_BOLD as always set, regardless of selection, or previous calls to > EM_SETCHARFORMAT. Switch to Courier New in order to see that richedit really > sets the CFM_BOLD attribute in the correct selection. > > This fix was successful in removing failure in WinXP-SP2 (real machine) and > in Win98 (QEMU virtual machine). However, could you please test on other > platforms (win2k, win2k3, Vista) to see whether it removes the failure there > too? I want to be extra sure that this test actually passes on all > platforms. > > Changelog: > * Fix failing EM_GETCHARFORMAT test on all platforms > > -- > perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);' > > > > >
Passes in windows 2k. Output attached.
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\Admail>cd desktop C:\Documents and Settings\Admail\Desktop>riched.exe editor editor.c:2357: EM_STREAMOUT produced: {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Sy stem;}} \viewkind4\uc1\pard\b\f0\fs20 TestSomeText\par } editor.c:2613: EM_STREAMOUT produced: {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Sy stem;}} \viewkind4\uc1\pard\b\f0\fs20 TestSomeText\par } editor.c:3898: EM_SETTEXTEX is supported on this platform editor.c:3173: Testing EM_REPLACESEL behavior with redraw=1 editor.c:3173: Testing EM_REPLACESEL behavior with redraw=0 editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor.c:1649: Using template: This is some text with X on it editor.c:1649: Using template: This is some text with (X) on it on it.c:1649: Using template: This is some text with X editor.c:1649: Using template: This is some text with ---X--- on it editor.c:1649: Using template: This is some text with "X" on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with 'X' on it editor.c:1649: Using template: This is some text with :X: on it editor.c:1649: Using template: This text ends with X editor.c:1649: Using template: This is some text with X) on it editor.c:1649: Using template: This is some text with X--- on it editor.c:1649: Using template: This is some text with X" on it editor.c:1649: Using template: This is some text with X' on it editor.c:1649: Using template: This is some text with X: on it editor.c:1649: Using template: This is some text with (X on it X on itc:1649: Using template: This is some text with editor.c:1649: Using template: This is some text with ---X on it editor.c:1649: Using template: This is some text with "X on it editor.c:1649: Using template: This is some text with 'X on it editor.c:1649: Using template: This is some text with :X on it editor: 18696 tests executed (0 marked as todo, 0 failures), 0 skipped.