Commit Graph

283 Commits

Author SHA1 Message Date
Aryeh Gregor
3da3b75dcc Bug 802059 - Implement labels for existing encodings from the encoding spec; r=smontagu 2012-10-16 17:34:07 +02:00
Masatoshi Kimura
628a6dbb32 Bug 799910 - Fix ASCII range of EUC-KR and Big5 converters. r=smontagu 2012-10-16 21:34:03 -04:00
Trevor Saunders
3d3592cd63 bug 798595 - remove useless prmem.h includes r=ehsan 2012-10-04 02:14:06 -04:00
Masatoshi Kimura
402b94937e Bug 797385 - Part 3: Remove ibm864i converter. r=smontagu 2012-10-10 06:32:37 -04:00
Masatoshi Kimura
5637d27654 Bug 797385 - Part 2: Remove ibm864 usage. r=smontagu 2012-10-10 06:32:37 -04:00
Masatoshi Kimura
c7ff5faff1 Bug 797385 - Part 1: Rename isXSSVlunerable flag to isInternal and add the flag to ibm864. r=smontagu 2012-10-10 06:32:36 -04:00
Andrew Quartey
6772f228fb Bug 790354 - Remove unused variable 'ch' in nsBasicUTF7Decoder::ConvertNoBuff r=smontagu 2012-09-12 12:43:18 -04:00
Andrew Quartey
98eb78f3c2 Bug 786687 - Add null check for passed parameter to NS_strlen r=dougt 2012-09-04 11:12:33 -04:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Makoto Kato
84c67ec46b Bug 783206 - replace NULL with nullptr in intl except to OS API usages. r=smontagu 2012-08-24 16:49:00 +09:00
Ehsan Akhgari
5b76a146bc Bug 579517 - Part 5: Add missing StandardInteger.h #includes where needed; r=bsmedberg
Landing on a CLOSED TREE
2012-08-08 17:08:17 -04:00
Ehsan Akhgari
2795937cf4 Bug 579517 - Part 4: Manually rewrite some parts of the code base not covered by the automated conversion; r=bsmedberg 2012-08-22 11:59:54 -04:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
0923bf00ef Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Julian Reschke
3681f7489b Bug 776399 - Fix IDL compat problem introduced by changes for bug 663057. r=bz 2012-07-24 21:37:32 -04:00
Nathan Froyd
a7eb97f896 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Jonathan Watt
6380335603 Bug 767388 - Kill NS_DEBUG. r=bz.
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Masatoshi Kimura
60bb4fea71 Bug 763617 - Don't propagate an error code from GetCharsetAlias. r=smontagu 2012-06-14 18:45:46 -04:00
Ehsan Akhgari
ddcea4e3b7 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (XPCOM parts); r=bsmedberg 2012-06-05 19:51:58 -04:00
Shriram Kunchanapalli
52a4aa2063 Bug 743581: Removes nsCRT::strlen(const PRUnichar*). f=sgautherie r=dougt 2012-05-30 18:43:39 +01:00
Gervase Markham
d4eb7d5782 Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Masatoshi Kimura
82fbf4fc4d Bug 710693 - Move internal encoding check into nsCharsetAlias. r=smontagu 2012-05-24 18:45:10 -04:00
Irving Reid
5fc15f0511 Bug 757946: don't write to underlying output stream if flush() has 0 bytes remaining. r=smontagu 2012-05-24 10:46:48 -07:00
julian.reschke@gmx.de
7d5a2dd5d4 Bug 663057 - support RFC2231/5987 encoding for title parameter in HTTP link header fields. r=hsivonen 2012-05-21 06:31:00 -07:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Simon Montagu
3af1f0d3f4 Tests for bug 715319 2012-05-20 02:09:14 -07:00
Simon Montagu
e600e330a9 Tests for bug 718573 2012-02-07 13:09:15 +02:00
Ryan VanderMeulen
e30ff35d31 Backout 17deb5f61b4d (bug 150073) due to build bustage. a=shouldausedtryfirst 2012-04-03 20:22:42 -04:00
Shriram Kunchanapalli
05c95fc3b7 Bug 150073 - Remove nsCRT:: in nsCRT::strlen. f=sgautherie, r=dougt 2012-02-18 19:17:01 +05:30
Makoto Kato
724c186aec Bug 738581 - fix various warning on mozilla/intl. r=smontagu 2012-03-26 11:27:52 +09:00
Simon Montagu
068e9f59a2 Various fixes to multi-byte Unicode decoders. Bug 715319, r=emk 2012-03-16 13:41:41 -07:00
Masatoshi Kimura
afd3810c8d Bug 734090 - Fix GB18030 4-bytes mappings. r=smontagu 2012-03-09 20:52:14 -05:00
Makoto Kato
2c1e47f122 Bug 590390 - deCOM nsICharsetAlias. r=smontagu
--HG--
rename : intl/locale/public/nsICharsetAlias.h => intl/locale/public/nsCharsetAlias.h
rename : intl/locale/src/nsCharsetAliasImp.cpp => intl/locale/src/nsCharsetAlias.cpp
2012-03-05 12:57:51 +09:00
Simon Montagu
db8c979547 Improve the tests for end of output block. Bug 718573, r=emk 2012-02-09 17:50:48 +02:00
Simon Montagu
45cc733646 Tests for bug 670556, r=emk 2012-01-22 12:04:08 +02:00
Simon Montagu
c3e3ec584a Fix typos in conditions. Bug 670556, r=emk 2012-01-22 12:04:05 +02:00
Simon Montagu
51fd9a10af Use moz_malloc and _free instead of nsMemory. Bug 705407, r=bsmedberg 2012-01-18 20:23:25 +02:00
Makoto Kato
93dfcd83f0 Bug 718500 - View > Character Encoding > Auto-Detect menupopup is broken. r=smontagu 2012-01-18 14:43:31 +09:00
Ms2ger
c953c25ac7 Bug 714613 - Simplify nsShiftJISToUnicode::Convert; r=smontagu 2012-01-15 09:13:12 +01:00
Asaf Romano
4d64dc1dc0 Bug 713519 - getCharsetAlias should throw for unknown character sets. r=smontagu. 2012-01-12 18:24:16 +02:00
Ms2ger
76df986395 Bug 623610 - Remove support for geostd8; r=smontagu 2012-01-02 19:05:20 +01:00
Masatoshi Kimura
0525a0e7b9 Bug 712876 - Replace ISO-8859-9 (latin5, etc.) decoder with windows-1254 decoder; r=smontagu 2011-12-28 00:49:57 +01:00
Makoto Kato
aa004cb7d1 Bug 712198 - Remove NS_WIN32, NS_UNIX and NS_OS2. r=khuey 2011-12-21 14:09:17 +09:00
John Schoenick
1c874917cd Bug 687679 - Rename JS_CompileFile to JS_CompileUTF8File, fix users. r=jorendorff,jst 2011-12-16 11:08:59 -08:00
Ms2ger
c3c3bdba73 Backed out changeset ba447ace2594 (bug 687679) for bustage. 2011-12-16 21:17:16 +01:00
John Schoenick
a355d623f2 Bug 687679 - Rename JS_CompileFile to JS_CompileUTF8File, fix users. r=jorendorff,jst 2011-12-16 11:08:59 -08:00
Kang-Hao (Kenny) Lu
5f6fd52ef3 Bug 699673 - nsTextToSubURI::UnEscapeNonAsciiURI shouldn't do fallback unescaping if the fallback charset is not an ASCII superset, or the URI gets messed up in the UI. r=smontagu 2011-11-06 17:14:27 +02:00
Ed Morley
6a998be2c5 Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail 2011-11-05 18:35:59 +00:00
Rail Aliiev
364e83c545 Bug 616542 - Shorten file path length of mochitest; r=ted 2011-11-04 21:13:42 +00:00
Makoto Kato
0bc2e3fe59 Bug 699009 - Remove MOZ_USE_NATIVE_UCONV. r=smontagu 2011-11-04 11:59:04 +09:00
Makoto Kato
cb4a3f646f Bug 698331 - get rid of *WithConversion (intl part). r=smontagu 2011-11-01 16:16:48 +09:00
Simon Montagu
b888e2c269 Resynchronize the Shift_JIS converter after unrecognized sequences. Bug 690225, r=emk 2011-10-19 07:58:41 +02:00
Simon Montagu
4b4b2d32c4 Backout cset 308f180eb3f4 2011-10-18 15:09:45 +02:00
Simon Montagu
510fd7cf24 Resynchronize the Shift_JIS converter after unrecognized sequences. Bug 690225, r=emk 2011-10-18 14:15:21 +02:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Geoff Brown
1cafda1972 Bug 684965 - update xpcshell manifests for Android; r=jmaher 2011-09-06 22:29:00 -07:00
Felix Fung
9bb0edf799 Bug 577266 - Correct misspellings in source code 2011-09-06 17:20:35 -07:00
Matheus Kerschbaum
de6608fa4d Bug 680793 - Remove support for Irix. r=ted 2011-09-02 15:41:45 +01:00
Mike Hommey
60b73b4219 Bug 676252 part 1 - Don't use $(OBJ_SUFFIX) before including config.mk. r=ted 2011-08-29 07:34:02 +02:00
Geoff Brown
1264a5446f Bug 668349 - Changes to xpcshell.ini; r=jmaher 2011-08-22 09:00:50 +01:00
Malini Das
a0832b693a Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- plain tests 2/2. r=jmaher, a=test-only 2011-08-12 12:21:44 -04:00
Michael Wu
6a28121ce1 Bug 671417 - Incorrect use of PRBool when other types are more appropriate or vice versa, r=bz,ehsan,dwitte,joe,vlad,luke,mak,roc 2011-07-26 23:43:37 -07:00
Ed Morley
223c46b36b Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
Dominic Fandrey
0ab2f46136 Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
Simon Montagu
2dc3d1f5d0 Fix the range check for CP949 in uscan.c, Bug 658952. Correct a typo in the alias cseuckr, Bug 462687 r=emk 2011-05-30 08:38:26 +03:00
Makoto Kato
270cfde22c Bug 590389 - some methods into nsICharsetConverterManager should be noscript. r=smontagu 2011-05-27 14:42:13 +09:00
Daniel Holbert
639c0e7b79 Bug 658949 patch 0: Fix existing tests that use "#" in data URIs to use %23 instead. rs=bz 2011-05-24 17:39:57 +02:00
Mounir Lamouri
e97a7a4ee5 Back out bug 658949 because of perma orange on Windows Reftests. 2011-05-24 15:36:32 +02:00
Daniel Holbert
2d246fbdb2 Bug 658949 patch 0: Fix existing tests that use "#" in data URIs to use %23 instead. rs=bz 2011-05-24 03:36:31 -07:00
Matheus Kerschbaum
35f86c76ad Bug 648911 - Remove support for non-libxul builds. r=ted,joedrew 2011-05-23 18:54:47 +02:00
Joel Maher
6993636556 Bug 616999. Xpcshell manifest support; manifest files. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Masatoshi Kimura
474a6690fc Bug 651113 - Remove windows-936 converter. r=smontagu
--HG--
extra : rebase_source : 4b0d09d815e2b7cfc008f8b5b987e597ceea9bbe
2011-04-27 10:37:00 +02:00
Makoto Kato
a81bd9269d Bug 638408 - Remove unused nsUConvDll.*. r=smontagu 2011-04-18 17:31:01 +09:00
Ehsan Akhgari
c5b0c5daca Bug 649012 - Fix some flaky mochitests which rely on non-zero timeout values; rs=ted 2011-04-15 18:26:50 -04:00
Masatoshi Kimura
0db310191f Remove native uconv. Bug 644801, r=smontagu 2011-04-05 11:13:21 +03:00
Makoto Kato
913f30bfe6 Bug 637599 - Move nsIPlatformCharset from intl/uconv to intl/locale. r=smontagu
--HG--
rename : intl/uconv/public/nsICharsetAlias.h => intl/locale/public/nsICharsetAlias.h
rename : intl/uconv/public/nsIPlatformCharset.h => intl/locale/public/nsIPlatformCharset.h
rename : intl/uconv/src/charsetalias.properties => intl/locale/src/charsetalias.properties
rename : intl/uconv/src/maccharset.properties => intl/locale/src/mac/maccharset.properties
rename : intl/uconv/src/nsMacCharset.cpp => intl/locale/src/mac/nsMacCharset.cpp
rename : intl/uconv/src/nsCharsetAlias.h => intl/locale/src/nsCharsetAlias.h
rename : intl/uconv/src/nsCharsetAliasImp.cpp => intl/locale/src/nsCharsetAliasImp.cpp
rename : intl/uconv/src/nsPlatformCharset.h => intl/locale/src/nsPlatformCharset.h
rename : intl/uconv/src/nsUConvPropertySearch.cpp => intl/locale/src/nsUConvPropertySearch.cpp
rename : intl/uconv/src/nsUConvPropertySearch.h => intl/locale/src/nsUConvPropertySearch.h
rename : intl/uconv/src/nsOS2Charset.cpp => intl/locale/src/os2/nsOS2Charset.cpp
rename : intl/uconv/src/os2charset.properties => intl/locale/src/os2/os2charset.properties
rename : intl/uconv/src/props2arrays.py => intl/locale/src/props2arrays.py
rename : intl/uconv/src/nsUNIXCharset.cpp => intl/locale/src/unix/nsUNIXCharset.cpp
rename : intl/uconv/src/unixcharset.properties => intl/locale/src/unix/unixcharset.properties
rename : intl/uconv/src/nsWinCharset.cpp => intl/locale/src/windows/nsWinCharset.cpp
rename : intl/uconv/src/wincharset.properties => intl/locale/src/windows/wincharset.properties
2011-04-04 16:05:07 -07:00
Simon Montagu
710e43e8e5 Use case-sensitive comparison when we know we are comparing canonical encoding names. Bug 564757, r=emk 2011-04-03 10:17:27 +03:00
Chris Jones ext:(%20and%20Kyle%20Huey%20%3Ckhuey%40kylehuey.com%3E)
0bb511a3d7 Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-03-31 23:29:02 -05:00
Chris Jones
a75fb12531 Backed out changeset 4beec31b9ea9 for increasing frequency of intermittent orange bug 618052 2011-03-31 18:57:38 -05:00
Chris Jones ext:(%20and%20Kyle%20Huey%20%3Ckhuey%40kylehuey.com%3E)
cc8b4c9c6c Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-03-31 14:51:19 -05:00
Ehsan Akhgari
de907a39be Merge mozilla-central into cedar 2011-03-30 13:55:31 -04:00
Ms2ger
52209d0dbb Bug 577945 - Map 0x7F..0x9F to U+007F..U+009F in ISO-8859 encodings; r=smontagu 2011-03-30 13:40:47 -04:00
Simon Montagu
c1998d7c2c Change x-gbk to gbk in charset titles. Bug 369403, r=emk 2011-03-30 08:35:36 +02:00
Simon Montagu
be96a9dc94 Remove UTF-32 encoder and decoder. Bug 604317, r=emk 2011-03-30 08:35:34 +02:00
Simon Montagu
3302ff047b Bug 414064 part 2. Add some tests. 2011-03-28 23:32:11 -04:00
Simon Montagu
89c1f9eb32 Bug 414064 part 1. Mark UTF-7 as being vulnerable to XSS attacks. r=VYV03354@nifty.ne.jp 2011-03-28 23:32:11 -04:00
Justin Lebar
7e2c5ae50d Bug 592557 - Eliminate uses of PR_Atomic{Increment,Decrement} functions in favor of PR_ATOMIC_{INCREMENT,DECREMENT} macros. r=bsmedberg,gal
--HG--
extra : rebase_source : 71069eb9c9d61131adee49279e136c8574dabc62
2011-03-28 15:58:49 -04:00
timeless@mozdev.org
88709c3b55 Bug 588719 remove nsVIQRToUnicode, nsVNIToUnicode, nsUnicodeToVIQR, nsUnicodeToVNI, and nsUnicodeToISO2022KR
r=smontagu
2010-10-13 09:54:10 +03:00
Ehsan Akhgari
0ce5440550 Merge mozilla-central into cedar 2011-03-26 12:21:39 -04:00
Ms2ger
fa9cd95dc2 Bug 622935 - Map 0x7F to U+007F rather than U+FFFD in mac and soviet encodings; r=smontagu 2011-03-26 12:04:18 -04:00
Masatoshi Kimura
5af6ed32e8 Bug 600715 - Remove JIS X 0212 support from EUC-JP encoder. r=smontagu 2011-03-26 13:43:40 +01:00
Mitchell Field
1592ff67f7 Merge mozilla-central to build-system. 2011-03-03 20:13:35 +11:00
L. David Baron
4768982795 Don't return NS_ERROR_ILLEGAL_INPUT when given an empty source buffer. (Bug 638236) r=smontagu a2.0=blocking 2011-03-02 23:21:06 -08:00
L. David Baron
520b20fa0b Fix converter stream part of bug 638236. r=bzbarsky a2.0=blocking
CLOSED TREE
2011-03-02 21:01:20 -08:00
Mitchell Field
cac949ea6d Merge mozilla-central to build-system. 2011-02-23 00:01:54 +11:00
Mitchell Field
9dff2b6562 Bug 627277 - Bustage fix. 2011-02-20 08:38:21 +11:00
Mitchell Field
2e8a7d546f Bug 627277 - Remove (broken) BeOS support. r=biesi,dwitte,gavin,joe,jorendorff,josh,khuey,mfinkle,neil,Pike,roc,shaver,smontagu,taras 2011-02-20 06:10:24 +11:00