1. 06 May, 2020 1 commit
  2. 22 Mar, 2020 3 commits
  3. 19 Mar, 2020 2 commits
  4. 30 Jul, 2019 1 commit
  5. 29 Jul, 2019 1 commit
    • mirabilos's avatar
      fix memrchr detection · e9e7e81a
      mirabilos authored
      this function is defined not on Linux but on GNU, that is,
      systems with glibc 2.2 or higher; also, use an intermediate
      HAVE_MEMRCHR symbol that people with alternative C libraries
      can define to indicate its presence
      e9e7e81a
  6. 21 Feb, 2019 2 commits
  7. 31 Jan, 2019 2 commits
  8. 30 Jan, 2019 2 commits
  9. 08 Jan, 2019 2 commits
  10. 11 Sep, 2017 1 commit
  11. 31 May, 2017 1 commit
    • Jinsuk Kim's avatar
      Fix crash detected by asan test · 910cca22
      Jinsuk Kim authored
      ASAN dislikes a specific memory access pattern used in the library.
      Replaced it with the way that pleases the sanitizer.
      910cca22
  12. 08 Mar, 2017 1 commit
    • Jinsuk Kim's avatar
      Post-detection mapping for HTML5 mode · e21eb6ae
      Jinsuk Kim authored
      When in HTML5 mode, the detector should not return non-WHATWG-compliant
      encoding which will either be ignored or cause issues anyway.
      This CL converts those non-compliant encodings to ASCII so that
      the raw bytes remain intact.
      
      A tweak to some Shift-JIS variant encodings: when use with Japanese
      locale, these are all converted to Shift-JIS to help Japanese users
      view them without manual encoding switching.
      e21eb6ae
  13. 04 Jan, 2017 1 commit
  14. 29 Dec, 2016 1 commit
    • Bruce Dawson's avatar
      Save 908,288 bytes by deleting 'const' three times · 9a5abb86
      Bruce Dawson authored
      Due to an odd VC++ bug, having const members in a struct that is then
      used to define a const array leads to weirdness. The const array ends
      up in the read/write segment instead of the read-only segment, and lots
      of code is generated to do the initializing. Removing the unnecessary-
      but-should-be-harmless 'const' keywords helps the compiler generate the
      intended read-only array and saves a lot of code. This change has the
      following effect on a full official Win32 Chrome build:
      
      chrome.dll
             .text: -364576 bytes change
            .rdata:  -22624 bytes change
             .data:  -53056 bytes change
            .reloc: -105020 bytes change
      Total change: -545276 bytes
      
      File-size saving is 492032 bytes.
      
      chrome_child.dll
             .text: -364592 bytes change
            .rdata:   52960 bytes change
             .data:  -53056 bytes change
            .reloc: -104824 bytes change
      Total change: -469512 bytes
      
      File-size saving is 416256 bytes.
      
      Total file-size saving is 908,288 bytes.
      
      The movement of ~53,000 bytes from the .data to .rdata segments in
      chrome_child.dll is understood, more or less. The other savings are
      more mysterious, but welcome.
      
      VC++ bug is filed here:
      https://connect.microsoft.com/VisualStudio/feedback/details/3117602
      
      Other instances of this bug are also being worked around but this is
      the most dramatic example.
      
      BUG=677351
      9a5abb86
  15. 30 Nov, 2016 2 commits
  16. 26 Jul, 2016 2 commits
    • Jinsuk Kim's avatar
      Introduce HTML5 mode · 9012c0ab
      Jinsuk Kim authored
      Added 'HTML5' mode to make CED work in more web standard-compliant
      way. The mode is turned off by default. Define a macro 'HTML5_MODE'
      for the compiler to enable it.
      
      Web standard does not support 7-bit charset except ISO_2022_JP.
      This change uses the mode to return ASCII_7BIT for all the other
      7-bit encoding methods (UTF7, HZ, etc).
      9012c0ab
    • Jinsuk Kim's avatar
      ca22290a
  17. 21 Jul, 2016 2 commits
    • Jinsuk Kim's avatar
      Remove build_config.h · 7645a37d
      Jinsuk Kim authored
      Remove the build configuration file that defines compiler/platform
      macros. The constants/directives that come predefined in build
      environment are enough for the library.
      7645a37d
    • Jinsuk Kim's avatar
      Removed build_config.h · 839d2959
      Jinsuk Kim authored
      Removed the build configuration file that defines compiler/platform
      macros. The constants/directives that come predefined in build
      environment are enough for the library.
      839d2959
  18. 01 Jul, 2016 1 commit
    • Jinsuk Kim's avatar
      Remove more static initializers · 45c3d4a3
      Jinsuk Kim authored
      Removed static constructors (string) in compact_enc_det.cc.
      Reverted some of the changes made in the previous patch
      not relevant to the topic.
      45c3d4a3
  19. 30 Jun, 2016 1 commit
    • Jinsuk Kim's avatar
      Remove static initializers · 4abb8e48
      Jinsuk Kim authored
      Non-local static initializers has negative effect on program startup.
      Turned them into local static vars that will be initialized upon
      the first invocation of the methods.
      4abb8e48
  20. 23 Jun, 2016 1 commit
  21. 21 Jun, 2016 1 commit
    • Jinsuk Kim's avatar
      Added license header to an #included file · 511859ce
      Jinsuk Kim authored
      detail_header_string.inc used for generating unittest results
      was missing the open source license header. This CL fixed that.
      
      Also included the file in the makefile.
      511859ce
  22. 08 Jun, 2016 1 commit