Граф коммитов

84 Коммитов

Автор SHA1 Сообщение Дата
alecf%flett.org 2751c6b097 fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser
2003-06-11 18:16:03 +00:00
dwitte%stanford.edu 270d3909ca bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.
2003-05-23 21:34:47 +00:00
alecf%netscape.com 8c50d0242a landing attempt #2 for 195262 - support for static atoms, and converting atoms over to UTF8 to reduce bloat - now without performance regressions!
sr=darin, r=dbaron
2003-03-25 18:55:59 +00:00
alecf%netscape.com b6584a77fb backout my static atom patch for now until I figure out the performance loss! :(
bug 195262
2003-03-21 20:13:08 +00:00
alecf%netscape.com ecf24a2b78 fix for bug 195262:
- convert atoms to UTF8 because 99% of the time, that is what they are used for
- add support for static atoms, where the strings are declared in a large const array and not copied into the heap
r=dbaron, sr=darin

this is an experimental landing - if there are performance issues, I will back it out.
2003-03-21 06:26:32 +00:00
caillon%returnzero.com 1c580a85d9 182982 - Mailnews utility library needs to use nsIPrefBranch, nsIPrefService, et alia
r=timeless/nhotta sr=bienvenu
2002-12-10 23:52:28 +00:00
sspitzer%netscape.com f60bd335f1 cid to progid cleanup. no bug. 2002-09-27 09:32:06 +00:00
nhotta%netscape.com d9d5b88bde When parsing HTML attachment, ignore UTF-16 charset label because the function is not supposed to parse it,
also avoid the parse when the attachment already has a charset assigned,
bug 160729, r=ducarroz, sr=bienvenu.
2002-08-12 19:10:18 +00:00
nhotta%netscape.com 89005f01ed Move ASCII check before the Unicode conversion,
label charset as "us-ascii" if the body is ASCII only,
bug 86255, r=ducarroz, sr=bienvenu.
2002-07-02 20:21:00 +00:00
nhotta%netscape.com 006d4e404b Check null pointer for arguments of Unicode conversion util functions,
bug 151769, r=ducarroz, sr=bienvenu.
2002-06-17 21:44:51 +00:00
nhotta%netscape.com 52198c4685 Changed the meta parse function for performance,
bug 144917, r=ducarroz, sr=bienvenu.
2002-05-20 19:51:35 +00:00
mstoltz%netscape.com cc4b5969f8 Bug 140133 - Replace unsafe strcpy with strncpy and null-terminate the result.
r=nhotta, sr=heikki
2002-04-30 04:07:57 +00:00
nhotta%netscape.com 0a4a8eba82 Add charset fallback mechanism to nsISaveAsCharset and use it for message headers and plain text body,
bug 109342, r=ducarroz,ftang, sr=bienvenu,sspitzer.
2002-04-25 22:49:19 +00:00
nhotta%netscape.com 69a973b2a6 Use the correct attribute for transliteration. 'transliterate' is an attribute of nsIEntityConverter,
need to use 'attr_EntityAfterCharsetConv', 'attr_EntityNone' skips transliteration at all,
bug 135538, r=ducarroz, sr=sspitzer, a=asa, adt.
2002-04-06 00:19:39 +00:00
nhotta%netscape.com 97b33d4e03 Adding a check after the conversion to check the consumed length, changed nsMsgI18N7bit_data_part,
bug 128908, r=ducarroz, sr=sspitzer, a=asa.
2002-03-05 23:57:01 +00:00
taka%netscape.com 1bca41b949 Re-write RFC-2047 encoder. bug 73403 12699 37088 98675 102610 104447 119079, r=nhotta, sr=mscott 2002-02-20 07:18:11 +00:00
nhotta%netscape.com 1ee9b14b33 Changed to use the service for nsIMimeConverter, bug 123699, sr=mscott. 2002-02-20 03:05:46 +00:00
nhotta%netscape.com 5f883a9e95 Changed to use the non nsString version of nsITextTransform::Change which saves the allocation for nsString, plus clean up,
bug 125077, r=ducarroz, sr=sspitzer.
2002-02-20 03:04:24 +00:00
dbaron%fas.harvard.edu 59892aa65e Remove more no-longer-needed nsComponentManager::RegisterComponent calls. Remove remnants of NS_IMPL_IDS macro, associated with long-gone NS_DECLARE_ID. b=125782 r=dougt rs=jag 2002-02-16 16:18:13 +00:00
bzbarsky%mit.edu 97aad157b6 Relanding the Compare --> Equals conversion. a=mcafee 2002-02-10 15:49:46 +00:00
bzbarsky%mit.edu 98afc5ee0f Testing performance impact of backout of what's left of the patch from
bug 115289.  See bug 123947 for details. a=mcafee
2002-02-09 20:46:05 +00:00
bzbarsky%mit.edu 40d60f39ec Convert Compare() to Equals() where possible now that we can do
case-insensitive Equals().  Bug 115289, r=alecf, sr=jag
2002-02-05 02:03:07 +00:00
cathleen%netscape.com 740d95a0a9 eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan 2002-02-05 01:41:13 +00:00
nhotta%netscape.com 114cd099c6 Changed to only do the charset conversion when the data is non ASCII, bug 116101, r=naving, sr=sspitzer. 2002-01-09 22:37:28 +00:00
nhotta%netscape.com f06c04cc45 In ConvertToUnicode() call IsAscii before doing the optimization for ASCII, bug 116264, r=ducarroz, sr=sspitzer. 2002-01-09 20:53:11 +00:00
jaggernaut%netscape.com 97b0530073 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf 2001-12-16 11:58:03 +00:00
nhotta%netscape.com 89c29421d0 Added default charset to nsIMsgCompFields, removed nsMsgI18NGetDefaultMailCharset, bug 110127, r=ducarroz, sr=bienvenu. 2001-12-01 17:39:17 +00:00
alecf%netscape.com f026e50d2f Fix for bug 110371 - remove uconv dependency from nsFileSpec by moving unicode-related routines into mailnews. sr=sspitzer, r=nhotta 2001-11-19 15:28:56 +00:00
nhotta%netscape.com a1e7be4688 Changed to use char* for charset instead of nsString& for i18n functions, bug 108932, r=ducarroz,sr=sspitzer. 2001-11-15 02:00:32 +00:00
bzbarsky%mit.edu f2ee8260a0 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf
2001-11-14 01:33:42 +00:00
nhotta%netscape.com 307fbadb70 Changed to use local stack for charset conversion util functions, bug 108914, r=ducarroz, sr=sspitzer. 2001-11-09 23:57:15 +00:00
jaggernaut%netscape.com f02611e9eb Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc 2001-10-29 09:27:57 +00:00
nhotta%netscape.com 8465fb9bac Fix the window close problem for saveAs in .js, enable the charset alert in .cpp and some clean up,
bug 89655, r=ducarroz, sr=bienvenu.
2001-10-23 23:25:02 +00:00
jaggernaut%netscape.com ca6197295f Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc 2001-09-29 08:28:41 +00:00
gerv%gerv.net 4e12e44b2f Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
sspitzer%netscape.com c19061cb8d fix for #97585. if the user happens to have a directory for their sig file, don't go into
an infinite loop.  r=ducarroz, sr=bienvenu
2001-09-05 22:24:43 +00:00
jaggernaut%netscape.com e91f8a147e Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
nhotta%netscape.com 66c673cd94 When the pref "mail.strictly_mime_headers" is off, send as mail charset instead of UTF-8,
bug 68394, r=ducarroz,sr=bienvenu.
2001-07-18 19:46:03 +00:00
dbaron%fas.harvard.edu aa4fec2b67 Header include dependency cleanup. b=64023 r=jag rs=brendan 2001-07-16 02:40:48 +00:00
jaggernaut%netscape.com 5a6317b8a5 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
2001-06-30 11:02:25 +00:00
timeless%mac.com 46b177e406 fix Bugzilla Bug 75853 CR and LF are naked ifdefs
r=dveditz, sr=scc
2001-04-18 05:59:43 +00:00
jgmyers%netscape.com 6b80312012 fix more mime header decoder callers, cleanup string fu: bug 65277 r=ducarroz r=nhotta sr=bienvenu 2001-04-05 23:00:38 +00:00
disttsc%bart.nl 8b43034cef Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc
2001-03-08 08:05:05 +00:00
disttsc%bart.nl 277181c660 Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc 2001-03-02 09:26:57 +00:00
nhotta%netscape.com 7148decf08 Added an error handling in ConvertToUnicode() to use ISO-8859-1 if charset is invalid, bug 56059, r=bienvenu, sr=alecf,mscott. 2000-10-12 22:42:19 +00:00
rayw%netscape.com 0257791053 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
nhotta%netscape.com cf1d1f0051 Initialize the output string before appending the conversion result, bug 50413, r=cata. 2000-09-11 21:25:26 +00:00
nhotta%netscape.com fc9f455715 Changed to generate HTML 3.2 CER instead of HTML 4 for both file and mail, bug 48041, r=akkana. 2000-08-16 22:47:35 +00:00
ftang%netscape.com fa65fbdc4b fix 39790 . r=tao,nhotta move send_default_charset , view_default_charset to property 2000-07-19 22:39:37 +00:00
mscott%netscape.com d5b4381214 Bug #45816 --> fix i18n breakage of intl-accept pref by calling getLocalizedUnicharPref 2000-07-19 21:42:18 +00:00