Re: Invalid locale example at the end of :help digraphs-use

2018-12-03 Fir de Conversatie Tony Mechelynck
On Mon, Dec 3, 2018 at 8:50 PM Bram Moolenaar  wrote:
>
>
> Tony wrote:
>
> > The example locale at line 118 of helpfile digraph.txt is invalid. I
> > suggest the attached patch.
>
> Thanks, I'll include it.
>
> Hmm, I think the remark about "fmt" is outdated.  And it confuses me.
> So let's just drop that part.

Since I didn't understand the part about fmt myself either, I tried to
change the doc as little as possible (though I changed Latin1 to the
nowadays more fashionable UTF-8 [more fashionable, that is, on
Unix-like systems which are those where $LC_CTYPE is defined] and I
explained where to look for valid values). If the whole part about
needing to set $LC_CTYPE to some value other than 7-bit US-ASCII is
now obsolete, the whole paragraph can of course be dropped, and then
my whole change becomes moot.

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invalid locale example at the end of :help digraphs-use

2018-12-03 Fir de Conversatie Bram Moolenaar


Tony wrote:

> The example locale at line 118 of helpfile digraph.txt is invalid. I
> suggest the attached patch.

Thanks, I'll include it.

Hmm, I think the remark about "fmt" is outdated.  And it confuses me.
So let's just drop that part.

-- 
It might look like I'm doing nothing, but at the cellular level
I'm really quite busy.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Invalid locale example at the end of :help digraphs-use

2018-12-02 Fir de Conversatie Tony Mechelynck
The example locale at line 118 of helpfile digraph.txt is invalid. I
suggest the attached patch.

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# User Tony Mechelynck 
# Parent  bb2696c9ed5eecf995dd51d383ea3b6f585e558c
Correct invalid locale example in digraph.txt

diff --git a/runtime/doc/digraph.txt b/runtime/doc/digraph.txt
--- a/runtime/doc/digraph.txt
+++ b/runtime/doc/digraph.txt
@@ -110,17 +110,21 @@ this, you will have to type  e again
 'digraph' option and use CTRL-K to enter digraphs.
 
 You may have problems using Vim with characters which have a value above 128.
 For example: You insert ue (u-umlaut) and the editor echoes \334 in Insert
 mode.  After leaving the Insert mode everything is fine.  Note that fmt
 removes all characters with a value above 128 from the text being formatted.
 On some Unix systems this means you have to define the environment-variable
 LC_CTYPE.  If you are using csh, then put the following line in your .cshrc: >
-	setenv LC_CTYPE iso_8859_1
+	setenv LC_CTYPE en_US.utf8
+(or similar for a different language or country). The value must be a valid
+locale on your system, i.e. on Unix-like systems it must be present in the
+output of >
+	locale -a
 
 ==
 3. Default digraphs	*digraphs-default*
 
 Vim comes with a set of default digraphs.  Check the output of ":digraphs" to
 see them.
 
 On most systems Vim uses the same digraphs.  They work for the Unicode and