Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove language tag validation, code clean-up #335

Merged
merged 16 commits into from
Sep 24, 2023
Merged

Remove language tag validation, code clean-up #335

merged 16 commits into from
Sep 24, 2023

Conversation

rrthomas
Copy link
Owner

@rrthomas rrthomas commented Sep 24, 2023

  • Fix some NULL pointer dereferences (thanks, GCC!)
  • src/Makefile.am: enchant.1 does not need to be processed by edit script
  • enchant-lsmod.c: bump my copyright year
  • Add copyright notices to build system and man pages
  • Move editor configuration to .editorconfig as far as possible
  • lib.c: remove two struct names that are never used
  • Update gnulib
  • configure.ac: call AC_CHECK_HEADERS with literal values only
  • lib.c: allow some whitespace reformatting, since it’s fairly minor
  • lib.c: inline the trivial function enchant_free_string_list
  • Use GLib logging for debug output
  • lib.c: add debug to show what ordering files and dictionaries are found
  • .dir-locals.el: 'gnu' is a more accurate style than 'K&R'
  • lib.c: simplify post-processing of suggestions
  • Fix some licensing nits
  • Do not validate language tags

rrthomas added 16 commits May 24, 2023 16:47
Also add _GL_ATTRIBUTE_MALLOC to some functions.
Put the .editorconfig file in src/ because the style really only applied to
files under src, not to the test suite.
The struct definitions are in typedefs, and only the typedef name is used.
Naming it is not really useful, as the name of its callee, g_strfreev, is
almost as descriptive.
And document that we do this, so users can get debug output if they want.

(Also document ENCHANT_CONFIG_DIR in enchant(5).)
Since there’s only one source now (the back-end provider), assume the
suggestions contain no duplicates, and don’t de-dup them.

Also, assume there are no empty suggestions (or if there are, that it’s for
a good reason).

Finally, filter the suggestions against the exclusions list in-place.
Update instructions for getting a copy of the LGPL to use a URL rather than
the FSF’s mailing address.

Fix some mentions of the GPL which should be of the LGPL.
Dictionaries named with invalid tags (e.g. “fr-toutesvariantes”) are found
in the wild. Pass the problem on to consumers; Enchant should permit these
tags.
@rrthomas rrthomas merged commit c1f2cd3 into rrthomas:master Sep 24, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant