Use UTF-8 for all non-ASCII characters in the sources.

Avoid mixing Latin-1, UTF-8 and Mac Roman (?) encodings in different source
files, use UTF-8 everywhere.

See #11116.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-09-18 16:16:12 +00:00
parent 9dab58b103
commit e9670814f5
13 changed files with 22 additions and 28 deletions

View File

@ -1,7 +1,7 @@
/*
* Name: wx/chartype.h
* Purpose: Declarations of wxChar and related types
* Author: Joel Farley, Ove Kåven
* Author: Joel Farley, Ove Kåven
* Modified by: Vadim Zeitlin, Robert Roebling, Ron Lee
* Created: 1998/06/12
* RCS-ID: $Id$

View File

@ -247,7 +247,7 @@ public:
// adoption of the Gregorian calendar (see IsGregorian())
//
// All data and comments taken verbatim from "The Calendar FAQ (v 2.0)"
// by Claus T<EFBFBD>ndering, http://www.pip.dknet.dk/~c-t/calendar.html
// by Claus Tøndering, http://www.pip.dknet.dk/~c-t/calendar.html
// except for the comments "we take".
//
// Symbol "->" should be read as "was followed by" in the comments

View File

@ -1,7 +1,7 @@
//////////////////////////////////////////////////////////////////////////////
// Name: wx/wxchar.h
// Purpose: Declarations common to wx char/wchar_t usage (wide chars)
// Author: Joel Farley, Ove Kåven
// Author: Joel Farley, Ove Kåven
// Modified by: Vadim Zeitlin, Robert Roebling, Ron Lee
// Created: 1998/06/12
// RCS-ID: $Id$

View File

@ -2,7 +2,7 @@
// Name: wx/wxcrtvararg.h
// Purpose: Type-safe ANSI and Unicode builds compatible wrappers for
// printf(), scanf() and related CRT functions
// Author: Joel Farley, Ove Kåven
// Author: Joel Farley, Ove Kåven
// Modified by: Vadim Zeitlin, Robert Roebling, Ron Lee
// Created: 2007-02-19
// RCS-ID: $Id$

View File

@ -1,7 +1,7 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wx/xrc/xh_filectrl.h
// Purpose: XML resource handler for wxFileCtrl
// Author: Kinaou Hervé
// Author: Kinaou Hervé
// Created: 2009-05-11
// RCS-ID: $Id$
// Copyright: (c) 2009 wxWidgets development team

View File

@ -774,7 +774,7 @@ wxString wxListBox::GetRealLabel(GList *item) const
str = wxString( label->label );
#if wxUSE_CHECKLISTBOX
// checklistboxes have "[±] " prepended to their lables, remove it
// checklistboxes have "[±] " prepended to their lables, remove it
//
// NB: 4 below is the length of wxCHECKLBOX_STRING from wx/gtk1/checklst.h
if ( m_hasCheckBoxes )

View File

@ -103,7 +103,7 @@ wxEND_HANDLERS_TABLE()
wxCONSTRUCTOR_5( wxListCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )
/*
TODO : Expose more information of a list's layout etc. via appropriate objects ( la NotebookPageInfo)
TODO : Expose more information of a list's layout etc. via appropriate objects (à la NotebookPageInfo)
*/
#else
IMPLEMENT_DYNAMIC_CLASS(wxListCtrl, wxControl)

View File

@ -29,14 +29,8 @@
#include "wx/osx/private.h"
/*
@"Credits": An NSAttributedString displayed in the info area of the panel. If not specified, this method then looks for a file named “Credits.html”, “Credits.rtf”, and “Credits.rtfd”, in that order, in the bundle returned by the NSBundle class method mainBundle. The first file found is used. If none is found, the info area is left blank.
@"ApplicationName": An NSString object displayed as the applications name. If not specified, this method then uses the value of CFBundleName (localizable). If neither is found, this method uses [[NSProcessInfo processInfo] processName].
@"ApplicationIcon": An NSImage object displayed as the applications icon. If not specified, this method then looks for an image named “NSApplicationIcon”, using [NSImage imageNamed:@"NSApplicationIcon"]. If neither is available, this method uses the generic application icon.
@"Version": An NSString object with the build version number of the application (“58.4”), displayed as “(v58.4)”. If not specified, obtain from the CFBundleVersion key in infoDictionary; if not specified, leave blank (the “(v)” is not displayed).
@"Copyright": An NSString object with a line of copyright information. If not specified, this method then looks for the value of NSHumanReadableCopyright in the localized version infoDictionary. If neither is available, this method leaves the space blank.
@"ApplicationVersion": An NSString object with the application version (“Mac OS X”, “3”, “WebObjects 4.5”, “AppleWorks 6”,...). If not specified, obtain from the CFBundleShortVersionString key in infoDictionary. If neither is available, the build version, if available, is printed alone, as “Version x.x”.
*/
// see http://developer.apple.com/mac/library/technotes/tn2006/tn2179.html for
// information about the various keys used here
// helper class for HIAboutBox options
class AboutBoxOptions : public wxCFRef<CFMutableDictionaryRef>

View File

@ -92,7 +92,7 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
wxCFStringRef cfName(theName) ;
fontFamilies.Add(cfName.AsString(wxLocale::GetSystemEncoding()));
}
else if (status == kATSIterationScopeModified) // Make sure the font database hasnÕt changed.
else if (status == kATSIterationScopeModified) // Make sure the font database hasn't changed.
{
// reset the iterator
status = ATSFontFamilyIteratorReset (kATSFontContextLocal, nil, nil,

View File

@ -100,7 +100,7 @@ wxEND_HANDLERS_TABLE()
wxCONSTRUCTOR_5( wxListCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )
/*
TODO : Expose more information of a list's layout etc. via appropriate objects (à la NotebookPageInfo)
TODO : Expose more information of a list's layout etc. via appropriate objects (à la NotebookPageInfo)
*/
#else
IMPLEMENT_DYNAMIC_CLASS(wxListCtrl, wxControl)

View File

@ -1,11 +1,11 @@
// -*- c++ -*- ////////////////////////////////////////////////////////////////
// Name: src/unix/dialup.cpp
// Purpose: Network related wxWidgets classes and functions
// Author: Karsten Ballüder
// Author: Karsten Ballüder
// Modified by:
// Created: 03.10.99
// RCS-ID: $Id$
// Copyright: (c) Karsten Ballüder
// Copyright: (c) Karsten Ballüder
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
@ -703,7 +703,7 @@ wxDialUpManagerImpl::CheckIfconfig()
cmd << wxT(" >") << tmpfile << wxT('\'');
/* I tried to add an option to wxExecute() to not close stdout,
so we could let ifconfig write directly to the tmpfile, but
this does not work. That should be faster, as it doesn´t call
this does not work. That should be faster, as it doesn't call
the shell first. I have no idea why. :-( (KB) */
if ( wxExecute(cmd,true /* sync */) == 0 )
{
@ -747,7 +747,7 @@ wxDialUpManagerImpl::CheckIfconfig()
}
else // could not run ifconfig correctly
{
m_CanUseIfconfig = 0; // don´t try again
m_CanUseIfconfig = 0; // don't try again
}
(void) wxRemoveFile(tmpfile);

View File

@ -1,11 +1,11 @@
// -*- c++ -*- ///////////////////////////////////////////////////////////////
// Name: unix/net.cpp
// Purpose: Network related wxWindows classes and functions
// Author: Karsten Ballüder
// Author: Karsten Ballüder
// Modified by:
// Created: 03.10.99
// RCS-ID: $Id$
// Copyright: (c) Karsten Ballüder
// Copyright: (c) Karsten Ballüder
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@ -143,7 +143,7 @@ public:
{ m_ConnectCommand = command; m_HangUpCommand = hupcmd; }
private:
/// -1: don´t know, 0 = no, 1 = yes
/// -1: don't know, 0 = no, 1 = yes
int m_IsOnline;
/// Can we use ifconfig to list active devices?
@ -318,7 +318,7 @@ wxDialUpManagerImpl::CheckStatusInternal(void)
}
wxLogNull ln; // suppress all error messages
// Let´s try the ifconfig method first, should be fastest:
// Let's try the ifconfig method first, should be fastest:
if(m_CanUseIfconfig != 0) // unknown or yes
{
wxASSERT(m_IfconfigPath.length());
@ -328,7 +328,7 @@ wxDialUpManagerImpl::CheckStatusInternal(void)
cmd << m_IfconfigPath << " >" << tmpfile << '\'';
/* I tried to add an option to wxExecute() to not close stdout,
so we could let ifconfig write directly to the tmpfile, but
this does not work. That should be faster, as it doesn´t call
this does not work. That should be faster, as it doesn't call
the shell first. I have no idea why. :-( (KB) */
#if 0
// temporarily redirect stdout/stderr:
@ -378,7 +378,7 @@ wxDialUpManagerImpl::CheckStatusInternal(void)
// else m_IsOnline remains -1 as we don't know for sure
}
else // could not run ifconfig correctly
m_CanUseIfconfig = 0; // don´t try again
m_CanUseIfconfig = 0; // don't try again
(void) wxRemoveFile(tmpfile);
if(m_IsOnline != -1) // we are done
return;

View File

@ -1,7 +1,7 @@
/////////////////////////////////////////////////////////////////////////////
// Name: src/xrc/xh_filectrl.cpp
// Purpose: XML resource handler for wxFileCtrl
// Author: Kinaou Hervé
// Author: Kinaou Hervé
// Created: 2009-05-11
// RCS-ID: $Id$
// Copyright: (c) 2009 wxWidgets development team