Re: [scite] What is the default Character Set if character.set=0?

54 views
Skip to first unread message

Neil Hodgson

unread,
May 14, 2013, 6:36:39 PM5/14/13
to scite-i...@googlegroups.com
trismarck:

> Now, the documentation tells me that the character.set=0 means the 'Default' character set. This is the part where I get stuck - how does Scite determine, what is this 'default' character set?

In the important case, displaying text, SciTE doesn't determine the default character set but tells Windows to use the default character set. When creating a font to display characters, one of the parameters, lfCharSet is set to this value. SC_CHARSET_DEFAULT -> DEFAULT_CHARSET.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd145037%28v=vs.85%29.aspx

> 1. What is the default Character Set if character.set=0? (if Scite uses Windows controls)

Whatever it is set to by Windows.

> 2. What is the function is the Scite source code that determines, what is the default Character Set? (is this just a fixed setting or does Scite use Windows API calls? (and if it uses those calls, where can I find them in the code) )

The default character set is not determined in SciTE. There is some encoding discovery performed in CodePageFromCharSet.

> 3. How is the .characterset property of the Style subobject of the VisualStyle object set by default (and is this at all relevant to what I'm asking about).

The default value is SC_CHARSET_DEFAULT.

Neil

Reply all
Reply to author
Forward
0 new messages