Re: Transaction report ?? currency symbol

2018-03-05 Thread Wm via gnucash-user

On 05/03/2018 15:23, Adrien Monteleone wrote:

I see then my first guess was wrong. I’ve never played with Docker so I wasn’t 
aware you had to specify locales when creating the image.

Glad to see you got it worked out and thanks for posting the solution for 
posterity!


Getting the locale right is a general solution rather than a gnc 
specific one, A


--
Wm


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Re: Transaction report ?? currency symbol

2018-03-05 Thread Adrien Monteleone
I see then my first guess was wrong. I’ve never played with Docker so I wasn’t 
aware you had to specify locales when creating the image.

Glad to see you got it worked out and thanks for posting the solution for 
posterity!


Regards,
Adrien

> On Mar 5, 2018, at 5:17 AM, r0bis  wrote:
> 
> Thanks Adrien,
> 
> I sorted this issue. It was the case that docker image had no specific
> locale set so it was the fallback to POSIX/ASCII
> 
> Once I compiled the docker image with correct locale everything was fine:
> 
> FROM ubuntu
> MAINTAINER "R"
> ENV DEBIAN_FRONTEND noninteractive
> RUN apt-get update -q && apt-get install -y \ 
>   locales \
>   mysql-client \
>   gnucash \
>   gnucash-docs \
>   yelp \
>   dbus-x11 \
>   --no-install-recommends \
>   && rm -rf /var/lib/apt/lists/* \
>   && rm -rf /src/*.deb
> 
> # LOCLES: uncomment chosen locale to enable it's generation
> RUN sed -i 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen  
> # generate chosen locale
> RUN locale-gen en_GB.UTF-8  
> # set system-wide locale settings
> ENV LANG en_GB.UTF-8  
> ENV LANGUAGE en_GB  
> ENV LC_ALL en_GB.UTF-8  
> # verify modified configuration
> RUN dpkg-reconfigure --frontend noninteractive locales  
> 
> RUN  groupadd gnucash \
>&& useradd -g gnucash -G video gnucash -m
> 
> # run gnucash as non-privileged user
> USER gnucash
> 
> ENTRYPOINT ["/usr/bin/gnucash", "--logto", "stderr"]
> 
> 
> 
> 
> --
> Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Re: Transaction report ?? currency symbol

2018-03-05 Thread r0bis
Thanks Adrien,

I sorted this issue. It was the case that docker image had no specific
locale set so it was the fallback to POSIX/ASCII

Once I compiled the docker image with correct locale everything was fine:

FROM ubuntu
MAINTAINER "R"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -q && apt-get install -y \ 
locales \
mysql-client \
gnucash \
gnucash-docs \
yelp \
dbus-x11 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /src/*.deb

# LOCLES: uncomment chosen locale to enable it's generation
RUN sed -i 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen  
# generate chosen locale
RUN locale-gen en_GB.UTF-8  
# set system-wide locale settings
ENV LANG en_GB.UTF-8  
ENV LANGUAGE en_GB  
ENV LC_ALL en_GB.UTF-8  
# verify modified configuration
RUN dpkg-reconfigure --frontend noninteractive locales  

RUN  groupadd gnucash \
&& useradd -g gnucash -G video gnucash -m

# run gnucash as non-privileged user
USER gnucash

ENTRYPOINT ["/usr/bin/gnucash", "--logto", "stderr"]




--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: Transaction report ?? currency symbol

2018-03-04 Thread Adrien Monteleone
You didn’t specify what type of container, but since you mentioned Ubuntu I’ll 
hazard a guess that it’s LXD and not Docker.

It sounds like the container isn’t exposing the locale settings of the host. 
That might be by design, but I’m not sure what the logic would be on that.

Someone else here might have some tips, but I’d think the answer is more likely 
to be found on a LXD forum.

Do you have any other apps in the same/similar containers that are having issue 
with locale settings?

Also, you said your default currency is set to GBP, is this within Gnucash? or 
the container? or the host?

If you set the default currency to dollars, does it show “$” properly? Do other 
currencies work at all?

Does changing the container locale to en_GB or en_UK work?

I’ve also run into problems with fonts in containers. Perhaps the report font 
is either not accessible or it doesn’t contain the proper £ sign. Did you set a 
custom font in the report stylesheet or is this already the default Gnucash 
font?

Lots of potentials here that need to be narrowed down unless you get lucky with 
someone else already experiencing the same issue.


Regards,
Adrien

> On Mar 4, 2018, at 6:39 AM, r0bis  wrote:
> 
> Hi, I am running gnucash from a container. Everything seemed to work fine but
> then I run a transaction report and you can see in the image that currency
> symbol is represented by ??For that container (Ubuntu) locale is en_US, but
> I have set default currency to GBP as my transactions are in pounds. Is
> there a way to solve this?Many thanks, Rob
> 
>  
> 
> 
> 
> --
> Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Transaction report ?? currency symbol

2018-03-04 Thread r0bis
Hi, I am running gnucash from a container. Everything seemed to work fine but
then I run a transaction report and you can see in the image that currency
symbol is represented by ??For that container (Ubuntu) locale is en_US, but
I have set default currency to GBP as my transactions are in pounds. Is
there a way to solve this?Many thanks, Rob

 



--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.