Bugs item #1311603, was opened at 2005-10-03 05:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1311603&group_id=2439

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Scintilla
Group: Bug
Status: Open
Resolution: None
Priority: 5
Submitted By: Takeshi Miya (takeshimiya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Full UNICODE support in SciTE and Scintilla

Initial Comment:
Hi! SciTe is my favorite text editor, but I've noticed
that it doesn't support full unicode, it only supports
it when using SString it seems.

I've looked a little at the code and noticed (at least
in the win32 implementation, but very probable in the
GTK one too) that almost everywhere, the strings are in
form of const char* instead of const _TCHAR*, and also
using only the ansi functions like strcpy() instead of
the unicode ones.
Also, the strings aren't enclosed in _T("") for unicode
support, nor _("") for gettext support.

Full UNICODE support is important, because I can't
currently open text files that the filename for example
is in Japanese, and I work very often with them.
Sadly, even Notepad supports that, so when I use
non-ansi filenames I have to use other text editor. =(

As for getting the command line in UNICODE in SciTE-win32, 
In WinMain(), get the commandline parameters from
LPTSTR GetCommandLine();
Because WinMain's lpCmdLine isn't unicode aware, you
must get the commandline using GetCommandLine().


I recommend doing a code freeze in CVS for doing this
change, that's what the Code::Blocks project (an C/C++
IDE cross-platform made using wxWidgets and Scintilla)
had done some weeks ago when making it full unicode aware.


Here are some links:
http://www.i18nguy.com/unicode/c-unicode.html
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getcommandline.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_a_sample_generic.2d.text_program.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_routine_mappings.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/winmain.asp

Regards,
Takeshi Miya

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1311603&group_id=2439
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to