zsh-workers
 help / color / mirror / code / Atom feed
* Strange characters in zsh/langinfo
@ 2023-07-22  9:58 Ariel Rivas
  2023-07-22 17:56 ` Lawrence Velázquez
  0 siblings, 1 reply; 2+ messages in thread
From: Ariel Rivas @ 2023-07-22  9:58 UTC (permalink / raw)
  To: zsh-workers


[-- Attachment #1.1.1: Type: text/plain, Size: 296 bytes --]

Fellows:
My locale is UTF-8 es_AR (Spanish, Argentina) and there's a strange &
probably null character
in DAY_7 and ABDAY_7 keys of the $langinfo associative array
No issue with strftime() function or date command
I attached an image showing the problem
Thx in advance
[image: screenshot-01.jpg]

[-- Attachment #1.1.2: Type: text/html, Size: 1459 bytes --]

[-- Attachment #1.2: screenshot-01.jpg --]
[-- Type: image/jpeg, Size: 61512 bytes --]

[-- Attachment #2: screenshot-01.jpg --]
[-- Type: image/jpeg, Size: 61512 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Strange characters in zsh/langinfo
  2023-07-22  9:58 Strange characters in zsh/langinfo Ariel Rivas
@ 2023-07-22 17:56 ` Lawrence Velázquez
  0 siblings, 0 replies; 2+ messages in thread
From: Lawrence Velázquez @ 2023-07-22 17:56 UTC (permalink / raw)
  To: Ariel Rivas; +Cc: zsh-workers

On Sat, Jul 22, 2023, at 5:58 AM, Ariel Rivas wrote:
> Fellows:
> My locale is UTF-8 es_AR (Spanish, Argentina) and there's a strange & 
> probably null character
> in DAY_7 and ABDAY_7 keys of the $langinfo associative array

I can reproduce the same (or a similar) problem on macOS.

	% zmodload zsh/langinfo
	% (LANG=es_ES.UTF-8; print -r -- $langinfo[DAY_7]) | od -t x1 -t c
	0000000    73  c3  62  61  64  6f  0a
		   s 303   b   a   d   o  \n
	0000007

-- 
vq


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-22 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-22  9:58 Strange characters in zsh/langinfo Ariel Rivas
2023-07-22 17:56 ` Lawrence Velázquez

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).