Wednesday, February 01, 2023

Re: cannot attach files in sogo webmail with non ascii symbols in filename

Le Tue, Jan 31, 2023 at 09:45:24PM +0300, Maksim Rodin a écrit :
> Hello,
> I noticed that I cannot attach files with non ascii symbols in filename using sogo webmail.
> There is an entry in /var/log/sogo/sogo.log:
> sogod[82818:12065535212040] EXCEPTION: <NSException: 0xaf9a8d06188> NAME:NSCharacterConversionException REASON:Can't get cString from Unicode string. INFO:(null)
>
> After some googling I found out that sogo uses GNUstep as a dependency
> and it requires the following envvar to be set for _sogo user:
> $ export GNUSTEP_STRING_ENCODING=NSUTF8StringEncoding
> When I launch sogo the following way:
> su - _sogo -c 'GNUSTEP_STRING_ENCODING=NSUTF8StringEncoding sogod'
> it works and there are no problems with adding attachments.

well that's a good find.

> The question is: what is the best way to set this envvar for sogod
> daemon so that I can control the sogod service using usual rcctl commands?
> May be it would not harm to hardcode this setting in the package?

the best place is /etc/login.conf.d/sogo which comes from
www/sogo/pkg/sogod.login in the ports tree.

cc'ing sebastia as maintainer.

Re: hw.ncpuonline

On 2023-02-01, Justin Muir <ve7utm@gmail.com> wrote:
> Hi all,
>
> I've got an AMD A10 with 4 cores and only 2 are online. I'm not sure how to
> enable the other 2.
>
> hw.ncpufound=4 btw
>
> Any ideas out there?

Assuming the specs I found are correct and they are full
cores, there should be no issue using hw.smt=1 to enable
the others on this machine as was suggested by others.

There might be some quirk in how the cpu returns information
about cores that means that they're detected as threads
instead of full cores.

Please show dmesg, and output from lscpu (in packages).
Maybe there is some more we could do to detect it better,
or maybe this model just reports strangely for the relevant
cpuid instructions.

--
Please keep replies on the mailing list.