aboutsummaryrefslogtreecommitdiffstats
path: root/utf8.c
AgeCommit message (Expand)AuthorFilesLines
2023-11-26doc: switch links to httpsJosh Soref1-1/+1
2022-12-13Sync with Git 2.31.6Junio C Hamano1-34/+43
2022-12-09utf8: refactor `strbuf_utf8_replace` to not rely on preallocated bufferPatrick Steinhardt1-21/+13
2022-12-09utf8: fix checking for glyph width in `strbuf_utf8_replace()`Patrick Steinhardt1-5/+14
2022-12-09utf8: fix overflow when returning string widthPatrick Steinhardt1-3/+9
2022-12-09utf8: fix returning negative string widthPatrick Steinhardt1-2/+6
2022-12-09utf8: fix truncated string lengths in `utf8_strnwidth()`Patrick Steinhardt1-5/+3
2021-05-04t0060: test ntfs/hfs-obscured dotfilesJeff King1-0/+5
2019-11-10utf8: use skip_iprefix() in same_utf_encoding()René Scharfe1-5/+4
2019-10-12utf8: use ARRAY_SIZE() in git_wcwidth()Beat Bolli1-4/+2
2019-02-11utf8: handle systems that don't write BOM for UTF-16brian m. carlson1-0/+14
2019-01-31Support working-tree-encoding "UTF-16LE-BOM"Torsten Bögershausen1-10/+32
2018-08-15Merge branch 'jk/size-t'Junio C Hamano1-5/+5
2018-07-24reencode_string: use size_t for string lengthsJeff King1-3/+3
2018-07-24reencode_string: use st_add/st_mult helpersJeff King1-2/+2
2018-07-09utf8.c: avoid char overflowBeat Bolli1-4/+4
2018-05-29Sync with Git 2.17.1Junio C Hamano1-12/+46
2018-05-22Sync with Git 2.14.4Junio C Hamano1-12/+46
2018-05-21is_hfs_dotgit: match other .git filesJeff King1-12/+46
2018-05-08Merge branch 'ls/checkout-encoding'Junio C Hamano1-2/+63
2018-04-16utf8: add function to detect a missing UTF-16/32 BOMLars Schneider1-0/+13
2018-04-16utf8: add function to detect prohibited UTF-16/32 BOMLars Schneider1-0/+26
2018-04-16utf8: teach same_encoding() alternative UTF encoding namesLars Schneider1-2/+24
2018-04-11unicode_width.h: rename to use dash in file nameStefan Beller1-1/+1
2017-10-10cleanup: fix possible overflow errors in binary searchDerrick Stolee1-1/+1
2017-09-07utf8: release strbuf on error return in strbuf_utf8_replace()Rene Scharfe1-1/+2
2016-09-26utf8: accept "latin-1" as ISO-8859-1Junio C Hamano1-0/+7
2016-09-26utf8: refactor code to decide fallback encodingJunio C Hamano1-11/+18
2015-09-17utf8: add function to align a string into given strbufKarthik Nayak1-0/+21
2015-04-16utf8-bom: introduce skip_utf8_bom() helperJunio C Hamano1-0/+11
2015-01-07Merge branch 'maint-2.1' into maintJunio C Hamano1-12/+20
2015-01-07Merge branch 'maint-2.0' into maint-2.1Junio C Hamano1-12/+20
2015-01-07Merge branch 'maint-1.9' into maint-2.0Junio C Hamano1-12/+20
2015-01-07Merge branch 'maint-1.8.5' into maint-1.9Junio C Hamano1-12/+20
2014-12-29is_hfs_dotgit: loosen over-eager match of \u{..47}Jeff King1-12/+20
2014-12-17Sync with v2.1.4Junio C Hamano1-0/+64
2014-12-17Sync with v2.0.5Junio C Hamano1-0/+64
2014-12-17Sync with v1.9.5Junio C Hamano1-0/+64
2014-12-17Sync with v1.8.5.6Junio C Hamano1-0/+64
2014-12-17utf8: add is_hfs_dotgit() helperJeff King1-0/+64
2014-09-19Merge branch 'rs/export-strbuf-addchars'Junio C Hamano1-7/+0
2014-09-09Merge branch 'nd/strbuf-utf8-replace'Junio C Hamano1-0/+3
2014-09-08strbuf: export strbuf_addchars()René Scharfe1-7/+0
2014-08-11utf8.c: fix strbuf_utf8_replace() consuming data beyond input stringNguyễn Thái Ngọc Duy1-0/+3
2014-06-06Merge branch 'tb/unicode-6.3-zero-width'Junio C Hamano1-69/+7
2014-05-12utf8: make it easier to auto-update git_wcwidth()Torsten Bögershausen1-59/+2
2014-05-12utf8.c: use a table for double_widthTorsten Bögershausen1-23/+18
2014-04-16Merge branch 'tb/unicode-6.3-zero-width'Junio C Hamano1-5/+4
2014-04-09utf8.c: partially update to version 6.3Torsten Bögershausen1-5/+4
2014-02-18utf8: use correct type for values in interval tableJohn Keeping1-2/+2
2014-02-18utf8: fix iconv error detectionJohn Keeping1-1/+1
2013-04-28pretty: Fix bug in truncation support for %>, %< and %><Ramsay Jones1-2/+2
2013-04-18pretty: support %>> that steal trailing spacesNguyễn Thái Ngọc Duy1-1/+1
2013-04-18pretty: support truncating in %>, %< and %><Nguyễn Thái Ngọc Duy1-0/+46
2013-04-18utf8.c: add reencode_string_len() that can handle NULs in stringNguyễn Thái Ngọc Duy1-3/+7
2013-04-18utf8.c: add utf8_strnwidth() with the ability to skip ansi sequencesNguyễn Thái Ngọc Duy1-6/+14
2013-04-18utf8.c: move display_mode_esc_sequence_len() for use by other functionsNguyễn Thái Ngọc Duy1-14/+14
2013-03-25Merge branch 'ks/rfc2047-one-char-at-a-time'Junio C Hamano1-0/+39
2013-03-21Merge branch 'jk/utf-8-can-be-spelled-differently'Junio C Hamano1-2/+18
2013-03-09format-patch: RFC 2047 says multi-octet character may not be splitKirill Smelkov1-0/+39
2013-02-25utf8: accept alternate spellings of UTF-8Jeff King1-2/+18
2013-02-14Merge branch 'jx/utf8-printf-width'Junio C Hamano1-0/+21
2013-02-11Add utf8_fprintf helper that returns correct number of columnsJiang Xin1-0/+21
2013-01-02Merge branch 'sp/shortlog-missing-lf'Junio C Hamano1-7/+6
2012-12-11strbuf_add_wrapped*(): Remove unused return valueSteffen Prohaska1-7/+6
2012-12-07Merge branch 'jc/same-encoding' into maintJunio C Hamano1-0/+7
2012-11-20Merge branch 'js/format-2047' into maintJunio C Hamano1-1/+1
2012-11-15Merge branch 'jc/same-encoding'Junio C Hamano1-0/+7
2012-11-09Merge branch 'js/format-2047'Jeff King1-1/+1
2012-11-04reencode_string(): introduce and use same_encoding()Junio C Hamano1-0/+7
2012-10-18utf8: fix off-by-one wrapping of textJan H. Schönherr1-1/+1
2012-07-08git on Mac OS and precomposed unicodeTorsten Bögershausen1-10/+16
2011-02-23strbuf: add fixed-length version of add_wrapped_textJeff King1-0/+9
2010-03-02Merge branch 'rs/optim-text-wrap'Junio C Hamano1-33/+28
2010-02-20utf8.c: speculatively assume utf-8 in strbuf_add_wrapped_text()René Scharfe1-6/+17
2010-02-20utf8.c: remove strbuf_write()René Scharfe1-13/+5
2010-02-20utf8.c: remove print_spaces()René Scharfe1-9/+6
2010-02-20utf8.c: remove print_wrapped_text()René Scharfe1-5/+0
2010-01-12utf8.c: mark file-local function staticJunio C Hamano1-1/+1
2009-11-23strbuf_add_wrapped_text(): skip over colour codesRené Scharfe1-1/+21
2009-11-22strbuf_add_wrapped_text(): factor out strbuf_add_indented_text()René Scharfe1-9/+17
2009-10-22Teach --wrap to only indent without wrappingJunio C Hamano1-0/+13
2009-10-19Add strbuf_add_wrapped_text() to utf8.[ch]Johannes Schindelin1-9/+24
2009-10-19print_wrapped_text(): allow hard newlinesJohannes Schindelin1-2/+16
2009-06-06On Solaris choose the OLD_ICONV iconv() declaration based on the UNIX specBrandon Casey1-1/+1
2009-02-04utf8: add utf8_strwidth()Geoffrey Thomas1-0/+19
2008-01-06utf8_width(): allow non NUL-terminated inputJunio C Hamano1-32/+52
2008-01-06utf8: pick_one_utf8_char()Junio C Hamano1-6/+21
2007-11-15Remove unreachable statementsGuido Ostkamp1-1/+0
2007-11-08Style: place opening brace of a function definition at column 1Junio C Hamano1-1/+2
2007-05-07wcwidth redeclarationAmos Waterland1-2/+2
2007-03-03Merge branch 'maint'Junio C Hamano1-6/+14
2007-03-03Fix a "pointer type missmatch" warning.Ramsay Jones1-2/+8
2007-03-03Fix some "comparison is always true/false" warnings.Ramsay Jones1-4/+6
2007-03-02print_wrapped_text: fix output for negative indentJohannes Schindelin1-1/+1
2007-02-27Actually make print_wrapped_text() usefulJohannes Schindelin1-5/+12
2006-12-30commit-tree: cope with different ways "utf-8" can be spelled.Junio C Hamano1-0/+9
2006-12-26Move encoding conversion routine out of mailinfo to utf8.cJunio C Hamano1-0/+54
2006-12-24commit-tree: encourage UTF-8 commit messages.Johannes Schindelin1-0/+278