Menu

#5 Suprious ' when saving files

1.0
open
None
2020-10-07
2020-10-05
No

When saving files from the nuSolve plotter, the filenames have extra ' (single quote marks) around them. For example:

eskil@gyller:~/nuSolve/PlotterOutputs$ ls -alh
total 1008K
drwxrwxr-x 2 eskil eskil 4.0K Oct  5 11:31  .
drwxrwxr-x 7 eskil eskil 4.0K Oct  5 10:48  ..
-rw-rw-r-- 1 eskil eskil  82K Oct  5 11:31 '20AUG15VB_baselines_X-band[0:6]_000.dat'
-rw-rw-r-- 1 eskil eskil  96K Oct  5 11:31 '20AUG15VB_baselines_X-band[0:6]_001.dat'
-rw-rw-r-- 1 eskil eskil  99K Oct  5 11:31 '20AUG15VB_baselines_X-band[0:6]_002.dat'

I think this is a bug, i.e. the intended file names are likely without the quotation marks.

Related

Tickets: #5

Discussion

  • Sergei Bolotin

    Sergei Bolotin - 2020-10-05

    Hi Eskil,
    The software does not add explicitly the single quota characters to the
    file names.The chars could be added
    by Qt if your locale environment requires it. Please, check it by setting
    LANG=C and LC_ALL=C.
    Kindly yours,
    Sergei.

    On Mon, Oct 5, 2020 at 6:02 AM Eskil Varenius varenius@users.sourceforge.net wrote:


    Status: open
    Milestone: 1.0
    Created: Mon Oct 05, 2020 10:02 AM UTC by Eskil Varenius
    Last Updated: Mon Oct 05, 2020 10:02 AM UTC
    Owner: Sergei Bolotin

    When saving files from the nuSolve plotter, the filenames have extra '
    (single quote marks) around them. For example:

    eskil@gyller:~/nuSolve/PlotterOutputs$ ls -alhtotal 1008Kdrwxrwxr-x 2 eskil eskil 4.0K Oct 5 11:31 .drwxrwxr-x 7 eskil eskil 4.0K Oct 5 10:48 ..-rw-rw-r-- 1 eskil eskil 82K Oct 5 11:31 '20AUG15VB_baselines_X-band[0:6]_000.dat'-rw-rw-r-- 1 eskil eskil 96K Oct 5 11:31 '20AUG15VB_baselines_X-band[0:6]_001.dat'-rw-rw-r-- 1 eskil eskil 99K Oct 5 11:31 '20AUG15VB_baselines_X-band[0:6]_002.dat'

    I think this is a bug, i.e. the intended file names are likely without the
    quotation marks.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/nusolve/tickets/5/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Tickets: #5

  • Eskil Varenius

    Eskil Varenius - 2020-10-06

    Thank you for the suggestion. My original settings were:

    eskil@gyller:~$ echo $LC_ALL
    en_US.UTF-8
    eskil@gyller:~$ echo $LANG
    en_US.UTF-8
    

    I changed the requested environment variables as

    eskil@gyller:~$ export LC_ALL=C
    eskil@gyller:~$ export LANG=C
    eskil@gyller:~$ echo $LC_ALL
    C
    eskil@gyller:~$ echo $LANG
    C
    

    and then ran "nuSolve". Same result: filenames have ' at start and end:

    eskil@gyller:~/nuSolve/PlotterOutputs$ ls -l
    total 836
    -rw-rw-r-- 1 eskil eskil  9259 Oct  6 12:45 '19APR24VB_session_[0:1]_000.dat'
    -rw-rw-r-- 1 eskil eskil  9249 Oct  6 12:45 '19APR24VB_session_[0:1]_001.dat'
    -rw-rw-r-- 1 eskil eskil    56 Oct  6 12:45 '19APR24VB_session_[0:1]_002.dat'
    -rw-rw-r-- 1 eskil eskil    56 Oct  6 12:45 '19APR24VB_session_[0:1]_003.dat'
    -rw-rw-r-- 1 eskil eskil    63 Oct  6 12:45 '19APR24VB_session_[0:1]_004.dat'
    

    So it seems the environment variables was not the problem. Do you have any other suggestions?

     
    • Sergei Bolotin

      Sergei Bolotin - 2020-10-06

      Hi Eskil,
      Thank you for your mail. Unfortunately, I cannot answer your question right
      now. I have checked sources, there are no
      any quote marks that are added to the file names. Can you check log output,
      how the names are displayed there?
      You need to turn on debugging log level for "IO: generic text operations"
      in the "Preferences".
      If I find a reason for it, I will email you.
      Kindly yours,
      Sergei.

      On Tue, Oct 6, 2020 at 6:48 AM Eskil Varenius varenius@users.sourceforge.net wrote:

      Thank you for the suggestion. My original settings were:

      eskil@gyller:~$ echo $LC_ALLen_US.UTF-8eskil@gyller:~$ echo $LANGen_US.UTF-8

      I changed the requested environment variables as

      eskil@gyller:~$ export LC_ALL=Ceskil@gyller:~$ export LANG=Ceskil@gyller:~$ echo $LC_ALLCeskil@gyller:~$ echo $LANGC

      and then ran "nuSolve". Same result: filenames have ' at start and end:

      eskil@gyller:~/nuSolve/PlotterOutputs$ ls -ltotal 836-rw-rw-r-- 1 eskil eskil 9259 Oct 6 12:45 '19APR24VB_session_[0:1]000.dat'-rw-rw-r-- 1 eskil eskil 9249 Oct 6 12:45 '19APR24VB_session[0:1]001.dat'-rw-rw-r-- 1 eskil eskil 56 Oct 6 12:45 '19APR24VB_session[0:1]002.dat'-rw-rw-r-- 1 eskil eskil 56 Oct 6 12:45 '19APR24VB_session[0:1]003.dat'-rw-rw-r-- 1 eskil eskil 63 Oct 6 12:45 '19APR24VB_session[0:1]_004.dat'

      So it seems the environment variables was not the problem. Do you have any
      other suggestions?


      Status: open
      Milestone: 1.0
      Created: Mon Oct 05, 2020 10:02 AM UTC by Eskil Varenius
      Last Updated: Mon Oct 05, 2020 10:02 AM UTC
      Owner: Sergei Bolotin

      When saving files from the nuSolve plotter, the filenames have extra '
      (single quote marks) around them. For example:

      eskil@gyller:~/nuSolve/PlotterOutputs$ ls -alhtotal 1008Kdrwxrwxr-x 2 eskil eskil 4.0K Oct 5 11:31 .drwxrwxr-x 7 eskil eskil 4.0K Oct 5 10:48 ..-rw-rw-r-- 1 eskil eskil 82K Oct 5 11:31 '20AUG15VB_baselines_X-band[0:6]_000.dat'-rw-rw-r-- 1 eskil eskil 96K Oct 5 11:31 '20AUG15VB_baselines_X-band[0:6]_001.dat'-rw-rw-r-- 1 eskil eskil 99K Oct 5 11:31 '20AUG15VB_baselines_X-band[0:6]_002.dat'

      I think this is a bug, i.e. the intended file names are likely without the
      quotation marks.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/nusolve/tickets/5/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #5

    • Sergei Bolotin

      Sergei Bolotin - 2020-10-07

      Hi Eskil,
      The quote chars are added by ls command because the file names contain
      chars that in
      a shell command should be escaped with "\" char: "[", ":" and "]". So, you
      can copy ls's output
      and type, say,

      cat '20AUG15VB_baselines_X-band[0:6]_000.dat'

      or, you can skip quotes and escape only these three chars:

      cat 20AUG15VB_baselines_X-band[0\:6]_000.dat

      If you want ls do not print quotas you can use the "-b" option (c-style
      escape) or, more generally,
      the "--quoting-style=literal" option (print file names as is).
      Kindly yours,
      Sergei.

      On Tue, Oct 6, 2020 at 6:48 AM Eskil Varenius varenius@users.sourceforge.net wrote:

      Thank you for the suggestion. My original settings were:

      eskil@gyller:~$ echo $LC_ALLen_US.UTF-8eskil@gyller:~$ echo $LANGen_US.UTF-8

      I changed the requested environment variables as

      eskil@gyller:~$ export LC_ALL=Ceskil@gyller:~$ export LANG=Ceskil@gyller:~$ echo $LC_ALLCeskil@gyller:~$ echo $LANGC

      and then ran "nuSolve". Same result: filenames have ' at start and end:

      eskil@gyller:~/nuSolve/PlotterOutputs$ ls -ltotal 836-rw-rw-r-- 1 eskil eskil 9259 Oct 6 12:45 '19APR24VB_session_[0:1]000.dat'-rw-rw-r-- 1 eskil eskil 9249 Oct 6 12:45 '19APR24VB_session[0:1]001.dat'-rw-rw-r-- 1 eskil eskil 56 Oct 6 12:45 '19APR24VB_session[0:1]002.dat'-rw-rw-r-- 1 eskil eskil 56 Oct 6 12:45 '19APR24VB_session[0:1]003.dat'-rw-rw-r-- 1 eskil eskil 63 Oct 6 12:45 '19APR24VB_session[0:1]_004.dat'

      So it seems the environment variables was not the problem. Do you have any
      other suggestions?


      Status: open
      Milestone: 1.0
      Created: Mon Oct 05, 2020 10:02 AM UTC by Eskil Varenius
      Last Updated: Mon Oct 05, 2020 10:02 AM UTC
      Owner: Sergei Bolotin

      When saving files from the nuSolve plotter, the filenames have extra '
      (single quote marks) around them. For example:

      eskil@gyller:~/nuSolve/PlotterOutputs$ ls -alhtotal 1008Kdrwxrwxr-x 2 eskil eskil 4.0K Oct 5 11:31 .drwxrwxr-x 7 eskil eskil 4.0K Oct 5 10:48 ..-rw-rw-r-- 1 eskil eskil 82K Oct 5 11:31 '20AUG15VB_baselines_X-band[0:6]_000.dat'-rw-rw-r-- 1 eskil eskil 96K Oct 5 11:31 '20AUG15VB_baselines_X-band[0:6]_001.dat'-rw-rw-r-- 1 eskil eskil 99K Oct 5 11:31 '20AUG15VB_baselines_X-band[0:6]_002.dat'

      I think this is a bug, i.e. the intended file names are likely without the
      quotation marks.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/nusolve/tickets/5/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #5

  • Eskil Varenius

    Eskil Varenius - 2020-10-07

    Aaaah, of course! That makes sense. So it's all in the eye of the beholder, not an issue in nuSolve. Thanks!

     

Log in to post a comment.