grass icon indicating copy to clipboard operation
grass copied to clipboard

[Bug] Formatting in v.info (lack of one space char)

Open afrigeri opened this issue 2 years ago • 3 comments

Describe the bug v.info needs a space in the formatting

To Reproduce Steps to reproduce the behavior:

v.info [name_of_the_vector]

image
  • Operating System: OSX
  • GRASS GIS version 8.2

afrigeri avatar Aug 28 '22 12:08 afrigeri

Can you add here the text which is in the title or copy-paste in addition to the screenshot? Seems like a UTF-8 is not counted correctly.

wenzeslaus avatar Aug 28 '22 14:08 wenzeslaus

Maybe the greater sign or the dash?

offending line: | Title: Database of Lunar Impact Craters >1–2 km |

afrigeri avatar Aug 28 '22 17:08 afrigeri

Seems like a UTF-8 is not counted correctly.

Certainly this is the case. All fixed width output assumes single byte characters. When running with a localized version or non-English data it is even more obvious.

 +----------------------------------------------------------------------------+
 | Map:      S2B_20190612.red@Zemgale_2019  Date: Fri May 27 15:11:30 2022    |
 | Mapset:   Zemgale_2019                   Login of Creator: marisn          |
 | Location: Latvija_S2                                                       |
 | DataBase: /home/marisn/grassdata                                           |
 | Title:    Šaursliežu dzelzceļš                                         |
 | Timestamp: none                                                            |
 |----------------------------------------------------------------------------|

marisn avatar Aug 29 '22 06:08 marisn