Browse Source

Fix various typos in the source code (closes MidnightCommander/mc#177).

Found via `codespell -S
po,doc,./misc/syntax,./src/vfs/extfs/helpers/README.it -L
parm,rouge,sav,ect,vie,te,dum,clen,wee,dynamc,childs,ths,fo,nin,unx,nd,iif,iterm,ser,makrs,wil`

Co-authored-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Kian-Meng Ang <kianmeng@cpan.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Kian-Meng Ang 2 years ago
parent
commit
5001232704
10 changed files with 28 additions and 28 deletions
  1. 1 1
      AUTHORS
  2. 2 2
      configure.ac
  3. 1 1
      contrib/README.xterm
  4. 9 9
      doc/NEWS
  5. 1 1
      lib/charsets.c
  6. 1 1
      lib/event/event.txt
  7. 1 1
      lib/global.h
  8. 1 1
      lib/serialize.c
  9. 9 9
      lib/strutil.h
  10. 2 2
      lib/strutil/strutil.c

+ 1 - 1
AUTHORS

@@ -67,7 +67,7 @@ Antonio Palama, DOS port <palama@posso.dm.unipi.it>
 	DOS port.
 
 Dmitry Koterov <dmitry.koterov@gmail.com>
-	s3 extfs bugfixes and emprovements
+	s3 extfs bugfixes and improvements
 
 Egmont Koblinger <egmont@gmail.com>
         Support of 256 colors

+ 2 - 2
configure.ac

@@ -215,7 +215,7 @@ mc_UNIT_TESTS
 
 
 dnl ############################################################################
-dnl Check for main libraies
+dnl Check for main libraries
 dnl ############################################################################
 
 mc_CHECK_GLIB
@@ -313,7 +313,7 @@ dnl replacing lstat with statlstat on sco makes it more portable between
 dnl sco clones
 AC_CHECK_FUNCS(statlstat)
 
-dnl Ovverriding mmap support.  This has to be before AC_FUNC_MMAP is used.
+dnl Overriding mmap support.  This has to be before AC_FUNC_MMAP is used.
 dnl We use only part of the functionality of mmap, so on AIX,
 dnl it's possible to use mmap, even if it doesn't pass the autoconf test.
 AC_ARG_WITH([mmap],

+ 1 - 1
contrib/README.xterm

@@ -64,7 +64,7 @@ with those from xterm.tcap.
 The xterm.ad translation table contains many items (some of them may be
 unnecessary) but are included only to make it work on all different xterms
 (xterm terminfo and termcap databases have different sequences for the same
-keys in every different database, so xterm.ad works as a stardard to make
+keys in every different database, so xterm.ad works as a standard to make
 xterm.ti and termcap happy). If you find that xterm works well even if you
 delete some lines from the translations, feel free to do it.
 

+ 9 - 9
doc/NEWS

@@ -284,7 +284,7 @@ Version 4.8.24
 
 - VFS
 
-    * sftpfs: support keyborad interactive authentication (#3921)
+    * sftpfs: support keyboard interactive authentication (#3921)
     * uc1541 extfs: update up to 3.3 version (#3936)
 
 - Editor
@@ -337,7 +337,7 @@ Version 4.8.23
 
     * Expanded syntax highlighting rules (#3975):
         - expanded file name regexp for sh.syntax
-        - use ini.syntax for systemd cofiguration files
+        - use ini.syntax for systemd configuration files
     * Syntax updates:
         - shell (#3981)
         - ebuild (#3988)
@@ -798,7 +798,7 @@ Version 4.8.14
     * Info panel can't obtain file system statistics on Solaris (#3277)
     * "Shell patterns" broken beyond repair (#2309)
     * File selection by patterns uses bytes instead of unicode characters (#2743)
-    * Copy files dosn't work as expected, when copying to a directory with the special symbol in its name (#3235)
+    * Copy files doesn't work as expected, when copying to a directory with the special symbol in its name (#3235)
     * Wrong order of old_colors table items (#3404)
     * Input line: Alt+Backspace on one-letter word erases too much (#3390)
     * "Directory scanning" window is too narrow (#3162)
@@ -851,7 +851,7 @@ Version 4.8.13
     * mcviewer: incorrect percentage in mcview hex mode (#3258)
     * RAR VFS incorrectly recognizes UnRAR version (#3240)
     * viewbold and viewselected are missing from some skins (#3244)
-    * Incorrect enconding name for manual page (#3239)
+    * Incorrect encoding name for manual page (#3239)
     * "User menu -> View manual page" doesn't do coloring (#3243)
 
 
@@ -1164,7 +1164,7 @@ Version 4.8.5
         - xlhtml text-mode handler for XLS files
         - ppthtml text-mode handler for PPT/PPS files
         - open=view+pager fallback (noX) for PostScript, PDF, OD[PST] and DVI
-        - standarized $DISPLAY checks
+        - standardized $DISPLAY checks
     * File extension support:
         - SQLite database files (#2103)
         - compiled Java files (*.class) (#2103)
@@ -1287,7 +1287,7 @@ Version 4.8.2
 
 - Core
 
-    * Added new flag -X (--no-x11) to allow dont't use X11 to get the state of modifiers Alt, Ctrl, Shift (#86)
+    * Added new flag -X (--no-x11) to allow don't use X11 to get the state of modifiers Alt, Ctrl, Shift (#86)
     * Support of '~' as home dir in 'Start at:' field in 'Find File' dialog (#2694)
     * Support of '~' as home dir in hotlists (#2747)
     * Learn of 'Back Tab' is possible now in 'Learn keys' dialog (#2628)
@@ -1409,7 +1409,7 @@ Version 4.8.0-pre2
 - VFS
 
     * New extfs plugin: gitfs (#2467)
-    * patchfs enchancement: join several hunks of the same file into one VFS entry (#2573) 
+    * patchfs enhancement: join several hunks of the same file into one VFS entry (#2573) 
 
 - Misc
 
@@ -1476,7 +1476,7 @@ Be aware.
       or stay old behaviour (current file under cursor) (#2266)
     * Added simple swap mode that means the swap of panel locations, in addition to current swap
       of panel content (#2368)
-    * Cofiguration files now moved to directory specified in XDG_CONFIG_HOME environment variable (#1851)
+    * Configuration files now moved to directory specified in XDG_CONFIG_HOME environment variable (#1851)
     * Panel options are read now from [Panels] section only. [Midnight-Commander] section is not read (#2305)
     * "Show mini info" checkbox was moved from the "Layout" dialog window to the "Panel options" one (#2305)
     * Select files by shift-left/right in file panel (#2534)
@@ -1511,7 +1511,7 @@ Be aware.
 
     * New engine of the editor macro (#323)
     * Multiply repeat of the recorded actions (#323)
-    * Call extermal scripts from the editor (#323, #2512)
+    * Call external scripts from the editor (#323, #2512)
     * Added REDO action (#25)
     * Group UNDO by action (#27)
     * Selection is not reset after execute user menu (#2463)

+ 1 - 1
lib/charsets.c

@@ -213,7 +213,7 @@ load_codepages_list (void)
 
     if (codepages == NULL)
     {
-        /* files are not found, add defaullt codepage */
+        /* files are not found, add default codepage */
         fprintf (stderr, "%s\n", _("Warning: cannot load codepages list"));
 
         codepages = g_ptr_array_new ();

+ 1 - 1
lib/event/event.txt

@@ -75,7 +75,7 @@ where:
     name of the group, where event was initiated
 
  event_name:
-    event name. event_name ans event_group uniquely identify an event.
+    event name. event_name and event_group uniquely identify an event.
     These parameters can be useful if event handler is tied to several events
     and the distinguish between different events (for example, function of logging)
     is required.

+ 1 - 1
lib/global.h

@@ -225,7 +225,7 @@ typedef struct
     {
         /* Use the specified skin */
         char *skin;
-        /* Dialog window and frop down menu have a shadow */
+        /* Dialog window and drop down menu have a shadow */
         gboolean shadows;
 
         char *setup_color_string;

+ 1 - 1
lib/serialize.c

@@ -98,7 +98,7 @@ go_to_end_of_serialized_string (const char *non_serialized_data,
 /**
  * Serialize some string object to string
  *
- * @param prefix prefix for serailization
+ * @param prefix prefix for serialization
  * @param data data for serialization
  * @param error contain pointer to object for handle error code and message
  *

+ 9 - 9
lib/strutil.h

@@ -29,7 +29,7 @@
  * displaynig: all handled as zero with characters, expect combing character 
  * at the begin of string, this character has with one (space add before), 
  * so str_term_width is not good for computing width of singles characters 
- * (never return zero, expect emtpy string)
+ * (never return zero, expect empty string)
  * for compatibility are strings composed before displaynig
  * comparing: comparing decompose all string before comparing, n-compare 
  * functions do not work as is usual, because same strings do not have to be 
@@ -54,7 +54,7 @@
  */
 typedef enum
 {
-    /* success means, that convertion has been finished successully
+    /* success means, that conversion has been finished successfully
      */
     ESTR_SUCCESS = 0,
     /* problem means, that not every characters was successfully converted (They are
@@ -156,7 +156,7 @@ struct str_class
 
 /*** global variables defined in .c file *********************************************************/
 
-/* standard convertors */
+/* standard converters */
 extern GIConv str_cnv_to_term;
 extern GIConv str_cnv_from_term;
 /* from terminal encoding to terminal encoding */
@@ -168,17 +168,17 @@ struct str_class str_utf8_init (void);
 struct str_class str_8bit_init (void);
 struct str_class str_ascii_init (void);
 
-/* create convertor from "from_enc" to terminal encoding
+/* create converter from "from_enc" to terminal encoding
  * if "from_enc" is not supported return INVALID_CONV 
  */
 GIConv str_crt_conv_from (const char *from_enc);
 
-/* create convertor from terminal encoding to "to_enc"
+/* create converter from terminal encoding to "to_enc"
  * if "to_enc" is not supported return INVALID_CONV 
  */
 GIConv str_crt_conv_to (const char *to_enc);
 
-/* close convertor, do not close str_cnv_to_term, str_cnv_from_term, 
+/* close converter, do not close str_cnv_to_term, str_cnv_from_term, 
  * str_cnv_not_convert 
  */
 void str_close_conv (GIConv conv);
@@ -352,13 +352,13 @@ gboolean str_isprint (const char *ch);
  */
 gboolean str_iscombiningmark (const char *ch);
 
-/* write lower from of fisrt characters in ch into out
+/* write lower from of first characters in ch into out
  * decrase remain by size of returned characters
  * if out is not big enough, do nothing
  */
 gboolean str_toupper (const char *ch, char **out, size_t * remain);
 
-/* write upper from of fisrt characters in ch into out
+/* write upper from of first characters in ch into out
  * decrase remain by size of returned characters
  * if out is not big enough, do nothing
  */
@@ -524,7 +524,7 @@ char *str_create_key_for_filename (const char *text, gboolean case_sen);
  */
 int str_key_collate (const char *t1, const char *t2, gboolean case_sen);
 
-/* release_key created by str_create_key, only rigth way to release key
+/* release_key created by str_create_key, only right way to release key
  * I
  */
 void str_release_key (char *key, gboolean case_sen);

+ 2 - 2
lib/strutil/strutil.c

@@ -380,7 +380,7 @@ str_detect_termencoding (void)
         /* On Linux, nl_langinfo (CODESET) returns upper case UTF-8 whether the LANG is set
            to utf-8 or UTF-8.
            On Mac OS X, it returns the same case as the LANG input.
-           So let tranform result of nl_langinfo (CODESET) to upper case  unconditionally. */
+           So let transform result of nl_langinfo (CODESET) to upper case  unconditionally. */
         term_encoding = g_ascii_strup (nl_langinfo (CODESET), -1);
     }
 
@@ -983,7 +983,7 @@ strrstr_skip_count (const char *haystack, const char *needle, size_t skip_count)
 }
 
 /* --------------------------------------------------------------------------------------------- */
-/* Interprete string as a non-negative decimal integer, optionally multiplied by various values.
+/* Interpret string as a non-negative decimal integer, optionally multiplied by various values.
  *
  * @param str input value
  * @param invalid set to TRUE if "str" does not represent a number in this format

Some files were not shown because too many files changed in this diff