Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-26 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Geoff Clare wrote in <20220526085434.GA19184@localhost>: |Steffen Nurpmeso wrote, on 24 May 2022: |> |> I find that "setlocale() may invalidate the string" painful, |> because many functions of the C library do not have _l() variants |> that could work with a uselocale() object. Just

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-26 Thread Geoff Clare via austin-group-l at The Open Group
Steffen Nurpmeso wrote, on 24 May 2022: > > I find that "setlocale() may invalidate the string" painful, > because many functions of the C library do not have _l() variants > that could work with a uselocale() object. Just think about the > scanf() that is used so often, or strtol(): you

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-24 Thread Bruno Haible via austin-group-l at The Open Group
Thank you for the reply. Geoff Clare wrote: > > https://posix.rhansen.org/p/gettext_draft > > Line 573 > > In today's call we made changes along the lines you suggest. Please > check the updated etherpad to see if they achieve what you wanted. The change is good, from my POV. Thank you. Bruno

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-24 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Geoff Clare wrote in <20220524091849.GC25920@localhost>: |Bruno Haible wrote, on 12 May 2022: |> |> https://posix.rhansen.org/p/gettext_draft |> Line 573 |> |> "The application shall ensure that the codeset argument, if non-empty, \ |> is a |> valid codeset name that can be used as the

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-24 Thread Geoff Clare via austin-group-l at The Open Group
Bruno Haible wrote, on 12 May 2022: > > https://posix.rhansen.org/p/gettext_draft > Line 573 > > "The application shall ensure that the codeset argument, if non-empty, is a > valid codeset name that can be used as the tocode argument of the > iconv_open() > function." > > This is not the only

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-13 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Hello! Steffen Nurpmeso wrote in <20220513135904.hhnsw%stef...@sdaoden.eu>: |Steffen Nurpmeso wrote in | <20220513132857.xzhqq%stef...@sdaoden.eu>: ||Harald van Dijk wrote in || <9aa0b43f-c5de-1698-9f34-c725a40e6...@gigawatt.nl>: |||On 12/05/2022 23:10, Steffen Nurpmeso wrote: |||> Harald

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-13 Thread Harald van Dijk via austin-group-l at The Open Group
On 13/05/2022 14:28, Steffen Nurpmeso wrote: You again strip content of follow-up RFCs. In my previous message, I quoted your message that I replied to in full. I stripped absolutely nothing and do not appreciate your utterly false claim here. Retract it. Harald van Dijk

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-13 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Harald van Dijk wrote in <9aa0b43f-c5de-1698-9f34-c725a40e6...@gigawatt.nl>: |On 12/05/2022 23:10, Steffen Nurpmeso wrote: |> Harald van Dijk wrote in |> : |>|On 12/05/2022 18:19, Steffen Nurpmeso via austin-group-l at The Open |>|Group wrote: |>|> Bruno Haible wrote in |>|>

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-13 Thread Harald van Dijk via austin-group-l at The Open Group
On 12/05/2022 23:10, Steffen Nurpmeso wrote: Harald van Dijk wrote in : |On 12/05/2022 18:19, Steffen Nurpmeso via austin-group-l at The Open |Group wrote: |> Bruno Haible wrote in |> <4298913.vrqWZg68TM@omega>: |>|Steffen Nurpmeso wrote: |>|> ... |>|>| [.] "UTF-7"." |>|>

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-12 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Harald van Dijk wrote in : |On 12/05/2022 18:19, Steffen Nurpmeso via austin-group-l at The Open |Group wrote: |> Bruno Haible wrote in |> <4298913.vrqWZg68TM@omega>: |>|Steffen Nurpmeso wrote: |>|> ... |>|>| [.] "UTF-7"." |>|> |>|> That is overshoot. |>| |>|No. UTF-7 is invalid

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-12 Thread Harald van Dijk via austin-group-l at The Open Group
On 12/05/2022 18:19, Steffen Nurpmeso via austin-group-l at The Open Group wrote: Bruno Haible wrote in <4298913.vrqWZg68TM@omega>: |Steffen Nurpmeso wrote: |> ... |>| [.] "UTF-7"." |> |> That is overshoot. | |No. UTF-7 is invalid here because it produces output that is not NUL

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-12 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Bruno Haible wrote in <4298913.vrqWZg68TM@omega>: |Steffen Nurpmeso wrote: |> ... |>| [.] "UTF-7"." |> |> That is overshoot. | |No. UTF-7 is invalid here because it produces output that is not NUL |terminated. See: | |$ printf 'ab\0' | iconv -t UTF-7 | od -t c |000 a b +

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-11 Thread Bruno Haible via austin-group-l at The Open Group
Steffen Nurpmeso wrote: > ... > | [.] "UTF-7"." > > That is overshoot. No. UTF-7 is invalid here because it produces output that is not NUL terminated. See: $ printf 'ab\0' | iconv -t UTF-7 | od -t c 000 a b + A A A - 007 strlen() on such a return value makes invalid

Re: POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-11 Thread Steffen Nurpmeso via austin-group-l at The Open Group
Bruno Haible wrote in <24562059.ssLaC8jLEa@omega>: ... | [.] "UTF-7"." That is overshoot. (Though i'd wish they would have used it for internationalized domain names.) --steffen | |Der Kragenbaer,The moon bear, |der holt sich munter he cheerfully and one by one

POSIX bind_textdomain_codeset(): some invalid codeset arguments

2022-05-11 Thread Bruno Haible via austin-group-l at The Open Group
https://posix.rhansen.org/p/gettext_draft Line 573 "The application shall ensure that the codeset argument, if non-empty, is a valid codeset name that can be used as the tocode argument of the iconv_open() function." This is not the only requirement. We also need the requirement that the NUL