[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DateBox
[Thread Prev] | [Thread Next]
- Subject: Re: DateBox
- From: gbWilly <gbWilly@xxxxxxxxxxxxxx>
- Date: Mon, 10 Jun 2024 19:14:14 +0000
- To: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Cc: user@xxxxxxxxxxxxxxxxxxxxxx
Sent with Proton Mail secure email. On Saturday, June 8th, 2024 at 17:57, gbWilly <gbWilly@xxxxxxxxxxxxxx> wrote: > > > > > > Sent with Proton Mail secure email. > > > On Friday, June 7th, 2024 at 00:47, Benoît Minisini benoit.minisini@xxxxxxxxxxxxxxxx wrote: > > > Le 06/06/2024 à 23:11, Benoît Minisini a écrit : > > > > > Le 06/06/2024 à 18:38, gbWilly a écrit : > > > > > > > > P.S. Note that for glibc, the date separator for 'nl_NL.UTF-8' is '-', > > > > > not a space. > > > > > > > > I' m well aware of that and didn't want to go into the slashes and > > > > dashes, jut the dd and mm part being reversed. > > > > > > > > 6 of 6th is a bad day for doing this as they are both the same :) > > > > > > Indeed. Let's wait for midnight before trying to debug the mess! > > > > Last commit should fix the problem. > > > > Regards, > > > > -- > > Benoît Minisini. > > > I installed latest development version and tested the fix... > And it does not solve the problem. The date is still shown in English format. > > I did some testing and this is what turned up (see attachment -> screenshot): > > If in terminal I do 'locale' it shows me my locale as I set them > > If I do a Shell locale (or Exec) in gambas code, it doesn't show my locale, but I guess the default system locale. > System if default installed en_US. I later add nl_NL and set time,measurement, paper etc to Dutch format. > > On attached screenshot you see the output in both terminal and a 'Shell "locale"' output on a TextArea (black/yellow). > Shell returns all being en_US, my terminal shows some are nl_NL!! > > On the attachment you can also see the date Debian/Mate shows me (upper left corner). > A Dutch date/time format (za stands for zaterdag -> saturday) as I would expect. > > > I guess Gambas get's the settings somehow from somewhere else (as shown by Shell of Exec command from code giving other results that doing the command in terminal). > And that probably causes the problem. > > My locale from terminal: > LANG=en_US.UTF-8 <---- English (US) for language > LANGUAGE=en_US:en > LC_CTYPE="en_US.UTF-8" > LC_NUMERIC=nl_NL.UTF-8 > LC_TIME=nl_NL.UTF-8 <---- Dutch for time > LC_COLLATE="en_US.UTF-8" > LC_MONETARY=nl_NL.UTF-8 > LC_MESSAGES="en_US.UTF-8" > LC_PAPER=nl_NL.UTF-8 > LC_NAME="en_US.UTF-8" > LC_ADDRESS="en_US.UTF-8" > LC_TELEPHONE="en_US.UTF-8" > LC_MEASUREMENT=nl_NL.UTF-8 > LC_IDENTIFICATION="en_US.UTF-8" > LC_ALL= > > I've attached a little project showing the problem. > > gbWilly FYI [System] Gambas=3.19.90 d04de94 (master) OperatingSystem=Linux Distribution=Debian GNU/Linux 12 (bookworm) Kernel=6.1.0-20-amd64 Architecture=x86_64 Cores=2 Memory=960M Language=en_US.UTF-8 Platform=x11 Desktop=MATE DesktopResolution=96 DesktopScale=8 WidgetTheme=menta Font=Cantarell,11 [Programs] dpkg=Debian 'dpkg' package management program version 1.21.22 (amd64). gcc=gcc (Debian 12.2.0-14) 12.2.0 git=git version 2.39.2 msgmerge=msgmerge (GNU gettext-tools) 0.21 [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.8.0 DBus=libdbus-1.so.3.32.4 GDK2=libgdk-x11-2.0.so.0.2400.33 GDK3=libgdk-3.so.0.2406.32 GStreamer=libgstreamer-1.0.so.0.2200.0 GTK+2=libgtk-x11-2.0.so.0.2400.33 GTK+3=libgtk-3.so.0.2406.32 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.126.0.0 QT5=libQt5Core.so.5.15.8 QT6=libQt6Core.so.6.4.2 RSvg=librsvg-2.so.2.48.0 SDL=libSDL2-2.0.so.0.2600.5 SQLite3=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=lightdm-xsession DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=lightdm-xsession GIO_LAUNCHED_DESKTOP_FILE=/usr/share/mate/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=1152 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME=<home> LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MEASUREMENT=nl_NL.UTF-8 LC_MONETARY=nl_NL.UTF-8 LC_NUMERIC=nl_NL.UTF-8 LC_PAPER=nl_NL.UTF-8 LC_TIME=nl_NL.UTF-8 LOGNAME=<user> MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD=<home> QT_ACCESSIBILITY=1 QT_FONT_DPI=96 QT_LOGGING_RULES=*.debug=false QT_SCALE_FACTOR=1 SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/760,unix/<hostname>:/tmp/.ICE-unix/760 SHELL=/bin/bash SSH_AGENT_PID=813 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER=<user> XAUTHORITY=<home>/.Xauthority XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/ XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/<user> XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=lightdm-xsession XDG_SESSION_ID=3 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 The environment I tested it in gbWilly
Re: DateBox | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
DateBox | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
Re: DateBox | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: DateBox | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
Re: DateBox | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: DateBox | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: DateBox | gbWilly <gbWilly@xxxxxxxxxxxxxx> |