Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.suse    |    Suse is actually not that bad    |    138,051 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 137,805 of 138,051    |
|    Carlos E.R. to bad sector    |
|    =?UTF-8?B?UmU6IFNvbWUgcHJvZ3Jlc3MgLi4uUm    |
|    18 Jul 23 11:45:19    |
   
   From: robin_listas@es.invalid   
      
   On 2023-07-18 00:26, bad sector wrote:   
   > On 7/17/23 14:10, Carlos E.R. wrote:   
   >   
   >> Edit (or create) file .i18n. Mine is:   
   >>   
   >> # used by /etc/profile.d/lang.sh   
   >> #CER - if it doesn't work edit /etc/profile.d/lang.sh, see Bugzilla   
   >> 567324   
   >> LC_TIME=en_DK.UTF-8   
   >> LC_MONETARY=es_ES.utf8   
   >> LC_NUMERIC=es_ES.utf8   
   >> LC_PAPER=es_ES.utf8   
   >> LC_TELEPHONE=es_ES.utf8   
   >> LC_MEASUREMENT=es_ES.utf8   
   >> LC_NAME=es_ES.utf8   
   >   
   > Is it UTF-8 or utf8?   
      
   Sometimes one, some times the other. Maybe you noticed that the command   
   "locale" checked both.   
      
   > And how come sometimes these fields are quoted and sometimes not?   
      
   Dunno.   
      
   >   
   >> You need to at least log out and in.   
   >   
   >   
   > I'm on Tumbleweed now, fully updated as of 30 minutes ago   
   >   
   > There IS a ~/.i18n file, edited it to   
   >   
   > LANG=en_US.UTF-8   
   > LC_CTYPE="en_US.UTF-8"   
   > LC_NUMERIC="en_US.UTF-8"   
   > LC_TIME="en_US.UTF-8"   
   > LC_COLLATE="en_US.UTF-8"   
   > LC_MONETARY="en_US.UTF-8"   
   > LC_MESSAGES="en_US.UTF-8"   
   > LC_PAPER="en_US.UTF-8"   
   > LC_NAME="en_US.UTF-8"   
   > LC_ADDRESS="en_US.UTF-8"   
   > LC_TELEPHONE="en_US.UTF-8"   
   > LC_MEASUREMENT="en_US.UTF-8"   
   > LC_IDENTIFICATION="en_US.UTF-8"   
   >   
   > ...no change   
   >   
   > no file /etc/profile.d/lang.sh   
   >   
   > on re-log-in   
      
   Are you using kde/plasma?   
      
   >   
   > ~ locale   
   > locale: Cannot set LC_ALL to default locale: No such file or directory   
   > LANG=en_US.UTF-8   
   > LC_CTYPE=en_US.UTF-8   
   > LC_NUMERIC=en_US.UTF-8   
   > LC_TIME=Default.UTF-8 <<<<<<<<<   
   > LC_COLLATE=en_US.UTF-8   
   > LC_MONETARY=en_US.UTF-8   
   > LC_MESSAGES=en_US.UTF-8   
   > LC_PAPER=en_US.UTF-8   
   > LC_NAME=en_US.UTF-8   
   > LC_ADDRESS=en_US.UTF-8   
   > LC_TELEPHONE=en_US.UTF-8   
   > LC_MEASUREMENT=en_US.UTF-8   
   > LC_IDENTIFICATION=en_US.UTF-8   
   > LC_ALL=   
   >   
   > Don't know where that "Default.UTF-8" keeps coming from!   
   >   
   >   
   >> I don't know why gimp has trouble, but you know the drill: strace.   
   >   
   > my bad, I had forgot that the last strace exercise was in fact for gimp   
   > and not some locale command (starting to get dizzy here)   
      
   Oh, I told you to try on locale because it is a far easier one to trace.   
      
      
   >   
   >> strace --output=filename gimp   
   >> and find out what file it doesn't find.   
   >   
   >   
   >> Huh, I don't know if gimp can work if the locale is "C". It needs utf-8.   
   > That was only to see if anything would change, nothing did, forget it   
   >   
   >   
   > ~ export LC_TIME="en_US.UTF-8" export LC_TIME="en_US.UTF-8"   
   >   
   >   
   > the result being:   
   >   
   > ~ locale   
   > LANG=en_US.UTF-8   
   > LC_CTYPE=en_US.UTF-8   
   > LC_NUMERIC=en_US.UTF-8   
   > LC_TIME=en_US.UTF-8   
   > LC_COLLATE=en_US.UTF-8   
   > LC_MONETARY=en_US.UTF-8   
   > LC_MESSAGES=en_US.UTF-8   
   > LC_PAPER=en_US.UTF-8   
   > LC_NAME=en_US.UTF-8   
   > LC_ADDRESS=en_US.UTF-8   
   > LC_TELEPHONE=en_US.UTF-8   
   > LC_MEASUREMENT=en_US.UTF-8   
   > LC_IDENTIFICATION=en_US.UTF-8   
   > LC_ALL=   
   >   
   >   
   >   
   > If I issue the strace command just for gimp:   
   >   
   > ~ strace --output=trace.txt gimp   
   > (gimp:10753): Gtk-WARNING **: 17:33:58.024: Locale not supported by C   
   > library.   
   > Using the fallback 'C' locale.   
   >   
   >   
   >   
   > gimp loads and I can load and export the file A#º_0305.png   
   >   
   >   
   >   
   >   
   > If I issue the strace command WITH the file also argued for gimp   
   >   
   > ~ strace --output=trace.txt gimp A#º_0305.png   
   > libpng warning: iCCP: CRC error   
   > ** (file-png:8596): WARNING **: 17:22:59.539: Unsupported date format   
   > gimp: (null)-WARNING: Unsupported date format   
      
   Curious.   
      
   >   
   >   
   > NOW we're getting some civilised *comms* i.e. bad 'date' even though   
   > the locale is called LC_TIME   
   >   
   > gimp loads and I can load and export the file A#º_0305.png   
   >   
   >   
   > BUT if I clicjk the file icon in dolphin to open the image   
   > with gimp THEN gimp throws a fit as before and I cannot export   
   > on account of "illegal filename"   
      
   Because KDE is using the wrong locale.   
      
      
   > *Is it a dolphin bug?*   
   > {dolphin AND gimp are GNOME?}   
   >   
   > So I have a partial fix but on reboot I'll have to re-export   
   > what seems like THE bad field value for LC_TIME   
   >   
   > Also tried editing   
   >   
   > export LC_TIME="en_US.UTF-8"   
   >   
   > into /.profile, no joy   
      
      
   --   
   Cheers, Carlos.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca